|
-
April 30th, 2008, 01:51 PM
#1
Help with Dynamic Type’s
Hello All
This might be a dumb question but I am having problems defining a data member
Using .net 3.5
Here is my example, any help would be wonderful.
Class1:
class Class1
{
private static bool Class1Active = false;
}
Class2:
class Class2
{
private static bool Class2Active = false;
}
My Program:
internal static class MyProg
{
// This is where I need to replace XXX with something Gerneric
internal static XXX MyClass;
internal static void Initialize()
{
If (True)
{
MyClass = new Class1;
}
Else
{
MyClass = new Class2;
}
}
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|