Add a property to already created Type at runtime C# ASP.NET
<p>I had a requirement of generating classes and its objects at runtime. Hence, looking at <a href="http://mironabramson.com/blog/post/2008/06/Create-you-own-new-Type-and-use-it-on-run-time-%28C%29.aspx" rel="nofollow">this article</a> I created the same. (using )</p>

<p>I am storing all created types in a list.</p>

<p>But now the other requirement is to add properties to already created Types.</p>

<p>This is for the reason, if i want to use say Class A as a property Type in Class B and say Both in Class C.</p>

<p>I read a lot of articles on the same but have not yet come to a solution</p>

<p>Any Help will be appreciated.</p>

<p>Thanks</p>

<hr>

<p>Actually, i am in process of developing a multitenant application like LitwareHR by Microsoft.</p>

<p>This will be a system where admin can make sub sites with same escalation management functionality (like MS sharepoint)</p>

<p>Everything is done except workflows!</p>

<p>For data to be stored in tables, i am storing it in XML format.. </p>

<p>Eg:</p>

<pre><code>&lt;root tablename="UserInfo"&gt;
&lt;column name=\"Name\"&gt;Miron&lt;/column&gt;
&lt;column name=\"Company\"&gt;IBM&lt;/column&gt;
&lt;/root&gt;"
</code></pre>

<p>Everything from controls on the page to events to validators to web parts gets created on runtime using XSLT. </p>

<p>Here, the challenge comes when i need to use expression evaluator to apply workflows to it.</p>

<p>Eg: <code>If UserInfo.Name == "Miron"</code></p>

<p>Everything gets created on runtime, so have to retrieve table info as an object.</p>

<p>Let me know if i am not clear!</p>
