static T GetFieldValue <T>(this UICustomControl dpt, string name) { Assertion.Assert(dpt.GetType() == DPTType); return((T)ReflectionHelpers.GetFieldValue(dpt, name)); }
public static InstanceID GetInstanceID(UICustomControl control) { return((InstanceID)control.GetType() .GetField("m_InstanceID", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(control)); }