public void Test() { int ia = 12; TypeCodes typeCode = TypeReflector.GetTypeCodes(ia); Assert.IsTrue(typeCode == TypeCodes.int32); typeCode = TypeReflector.GetTypeCodes("i"); Assert.IsTrue(typeCode == TypeCodes.String); typeCode = TypeReflector.GetTypeCodes(new Student() { ID = 23 }); System.Console.WriteLine(typeCode.ToString()); Assert.IsTrue(typeCode == TypeCodes.complexclass); }