No, C# (and .NET as a platform)doesn't support the concept of meta classes
as Delphi does. Eventhough sometimes you can think of .NET Type objects as
Delphi meta classes this could be correct in some very-very few situations.
And because you don't have the Delphi concept of meta classes you don't have
virtual constructors and virtual static members.
I did not and still do not understand your requirement despite reading
almost all the posts. But I will venture to give the following
suggestion
1. Create a class indexer
public class myIndexer
{
object[] o=new object[12];
public object this[int index]
{
get
{
return o[index];
}
set
{
o[index]=value;
}
}
}
2.
Assign the form1,form2 objects to the above class
myIndexer ob=new myIndexer();
ob[0]=form1;
ob[1]=form2;
3.
Convert them to form objects with
form1=(Form)ob[0];
etc.
I hope the above is what you have been looking for.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.