Esempio n. 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();
 }
Esempio n. 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();
 }
Esempio n. 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();
 }
Esempio n. 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();
 }