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); }
public TDPoint(GetValue get, SetValue set) : base() { _get = get; _set = set; x = new TDInt(GetX, SetX); y = new TDInt(GetY, SetY); }