Пример #1
0
 public TDPoint(object obj, PropertyInfo info)
 {
     _get = Delegate.CreateDelegate(typeof(GetValue), obj, info.GetGetMethod()) as GetValue;
     _set = Delegate.CreateDelegate(typeof(SetValue), obj, info.GetSetMethod()) as SetValue;
     x    = new TDInt(GetX, SetX);
     y    = new TDInt(GetY, SetY);
 }
Пример #2
0
 public TDPoint(GetValue get, SetValue set)
     : base()
 {
     _get = get;
     _set = set;
     x    = new TDInt(GetX, SetX);
     y    = new TDInt(GetY, SetY);
 }