private IEnumerable<KeyValuePair<string, KRSInputAttribute>> GetInputFieldsAttributes(KRSHinge c)
 {
     foreach (var a in c.GetType().GetFields())
     {
         foreach (var b in (KRSInputAttribute[])a.GetCustomAttributes(typeof(KRSInputAttribute), true))
         {
             yield return new KeyValuePair<string, KRSInputAttribute>(a.Name, b);
         }
     }
 }
示例#2
0
 private IEnumerable <KeyValuePair <string, KRSInputAttribute> > GetInputFieldsAttributes(KRSHinge c)
 {
     foreach (var a in c.GetType().GetFields())
     {
         foreach (var b in (KRSInputAttribute[])a.GetCustomAttributes(typeof(KRSInputAttribute), true))
         {
             yield return(new KeyValuePair <string, KRSInputAttribute>(a.Name, b));
         }
     }
 }
 private void SetInputFieldValue(KRSHinge c, string fieldname, string value)
 {
     c.GetType().GetField(fieldname).SetValue(c, value);
 }
 private string GetInputFieldValue(KRSHinge c, string fieldname)
 {
     return (string)c.GetType().GetField(fieldname).GetValue(c);
 }
示例#5
0
 private void SetInputFieldValue(KRSHinge c, string fieldname, string value)
 {
     c.GetType().GetField(fieldname).SetValue(c, value);
 }
示例#6
0
 private string GetInputFieldValue(KRSHinge c, string fieldname)
 {
     return((string)c.GetType().GetField(fieldname).GetValue(c));
 }