W
William Stacey
Would this work for you (Note: typed from memory.) ?
if ( obj.GetType() == typeof(MyClass) )
{
MyClass myClass = (MyClass)object;
myClass.DoSomething();
}
else
{
//...
}
if ( obj.GetType() == typeof(MyClass) )
{
MyClass myClass = (MyClass)object;
myClass.DoSomething();
}
else
{
//...
}