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