like you can use:
if (typeof(object) == typeof(SomeDerivedClass)){
...
}else if (typeof(object) == typeof(SomeOtherDerivedClass)){
...
}
like you can use:
if (typeof(object) == typeof(SomeDerivedClass)){
...
}else if (typeof(object) == typeof(SomeOtherDerivedClass)){
...
}