Class Identification (Class Name)
If I understand your problem correctly, either use
if (o is Person) for a test whether o is from type Person or derived
from Person
or
if (o.GetType() == typeof(Person)) for a test whether o is exactly of
type Person.
hope this helps
Jrg
Quote:
> Say I have a class called Person
> I can then write
> Person o = new Person()
> But how do I do this?
> if 0 == Person ?
> another word of want to test if o is of class Person
> __Allan