你认为哪个更好..
if (thing.GetType() == typeof(thisthing))
{
//do stuff for this type of thing.
}
或者给对象一个 Enum 属性
if (thing.TypeName == NamesEnum.thisthing)
{
//do stuff for this type of thing.
}