示例#1
0
 public ParameterValue(object instance, FieldInfo field)
 {
     ObjectReference = instance;
     Field = field;
     foreach (object attribute in field.GetCustomAttributes(typeof(ParameterAttribute), true))
         Attribute = attribute as ParameterAttribute;
     ReadAttribute();
     ReadValue();
 }
示例#2
0
 public ParameterValue(object instance, FieldInfo field)
 {
     ObjectReference = instance;
     Field           = field;
     foreach (object attribute in field.GetCustomAttributes(typeof(ParameterAttribute), true))
     {
         Attribute = attribute as ParameterAttribute;
     }
     ReadAttribute();
     ReadValue();
 }
示例#3
0
 public ParameterValue(string objectPath, ObjectTree tree, FieldInfo field)
 {
     ObjectPath = objectPath;
     ObjectReference = tree.GetObject(objectPath);
     FieldPath = objectPath + "." + field.Name;
     Field = field;
     foreach (object attribute in field.GetCustomAttributes(typeof(ParameterAttribute), true))
         Attribute = attribute as ParameterAttribute;
     ReadAttribute();
     ReadValue();
 }
示例#4
0
 public ParameterValue(string objectPath, ObjectTree tree, FieldInfo field)
 {
     ObjectPath      = objectPath;
     ObjectReference = tree.GetObject(objectPath);
     FieldPath       = objectPath + "." + field.Name;
     Field           = field;
     foreach (object attribute in field.GetCustomAttributes(typeof(ParameterAttribute), true))
     {
         Attribute = attribute as ParameterAttribute;
     }
     ReadAttribute();
     ReadValue();
 }