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