title: Configurable method read from XML used in VB.NET on calling
body: <p>I have a question regarding how can i use a method name configurable to be called.
  E.g</p>
  
  <p>1.I have a xml file with three elements looking like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="iso-8859-1"?&gt;
  &lt;root&gt;
      &lt;element attribute1="a" attribute2="b" attribute3="Send" /&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>2.I am using a List (i made a class with three elements and create an object type list of that class) to store the elements from the xml file.</p>
  
  <p>3.Then using a For statement : For Each element As ClassList In GetList
  i want to call the configurable method from the xml file instead  :</p>
  
  <p>Theoratically instead of SendWait i want to have the value of attribute3(the value is SendWait) to be called.</p>
  
  <p>instead of SendKeys.SendWait("{ENTER}") 
  something like this:</p>
  
  <pre><code>SendKeys.element.Thirdelement()("{ENTER}")
  </code></pre>
  
  <ul>
  <li>the value of element.Thirdelement() is  SendWait</li>
  </ul>
  
  <p>I know that attribute3 could have 2 values : Send or Sendwait
  Should i use a if statement, or is there any solution available?</p>
  
  <pre><code>If element.ThirdElement() = "SendWait" Then
                                  SendKeys.SendWait("{ENTER}")
                              Else
                                  SendKeys.Send("{ENTER}")
  </code></pre>
  
  <p>I am new in programming so please excuse me if one of the  statement above is an aberration!                    </p>
  
  <p>LE:
  I have a new class ListClass1 with three members and properties:</p>
  
  <pre><code>firstElement()
  secondElement()
  thirdElement()
  </code></pre>
  
  <p>I am using this class in order to store the data from xml file </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="iso-8859-1"?&gt;
  &lt;root&gt;
  &lt;element attribute1="a" attribute2="b" attribute3="Send" /&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>So after i add the values to the list, for example :  <strong>element.ThirdElement()</strong> will have the value from attribute3 ("Send"). 
  Also <strong>element.secondElement()</strong> will retain the value from attribute2 and so on.</p>