public class ClassObject { private int _Number; private bool _YesNo; private string _Word; public ClassObject() { _Number = 8; _YesNo = false; _Word = string.Empty; } public int Number { get { return _Number; } set { _Number = value; } } public bool YesNo { get { return _YesNo; } set { _YesNo = value; } } public string Word { get { return _Word; } set { _Word = value; } } }
private Type _T; // wat should i put instead of Type public Type TypeClass { get { return _T; } set { _T = value; } }
_T
TypeClass
Type
TypeClass = typeof(myobject); // in the case where you know in the source code what the type is // or TypeClass = myobj.GetType(); // where you don't know at compile time the type of the object
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)