C# taking arguments & declaring at runtime from text file
<p>I have a text file with the following:</p>

<pre><code>int A = 5 ;
string str = "tempstring" ;
str DosomeMethod 15 16 20 22 ;
</code></pre>

<p>When reading the text file thru my program, I want to declare <code>int A = 5</code> &amp; <code>string str = "tempstring"</code> at runtime.</p>

<p>It can be like</p>

<pre><code>string[] st = freader.readline().split(' ');
if (st[0]=="int")
    {
      str[0] str[1] = str[4];
    }
</code></pre>

<p>I know that the above is the wrong syntax but I want to do something like this with some reference.</p>

<p>Can anybody help without using irony .net?</p>
