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