I want to check if an object is not of a particular type. I know how to check if something is of a particular type:
if (t is TypeA) { ... }
Check below example for getType():
getType()
object obj = new object(); obj.GetType(); string s; s.GetType(); List<string> StringList = new List<string>(); StringList.GetType();