Object Creation
In my unmanaged there is code i n this way
Class1 c1= new Class1(); // Class1 is one object and creating a instance of it\
Class1 c2= new Class2();// Class2 is another object a c2 is its instance
string s=c2.f1().GetDataCollection(); //GetDatacolection gets some object name
c1=new s; // this is creating a object dynamically
Can we achieve this concept in C#?
Please send me some code snippets
Thank you
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

kovanRank #1,453 · 1.1K reputationPosted Dec 5, 2003, 2:07 AM EST
sacrespRank #1,944 · 754 reputationPosted Dec 5, 2003, 11:40 AM EST