public SerializableAction_Single(Object targetObject, SerializableFieldSetter target, object parameter)
 {
     Assert.IsTrue((parameter == null && !target.FieldType.IsValueType) || target.FieldType.IsInstanceOfType(parameter));
     this.targetObject = targetObject;
     this.target       = new SerializableActionTarget(target);
     arguments         = new[] { new SerializableArgument(parameter, parameter.GetType(), "Field?") }; //@TODO: figure out name
 }
Esempio n. 2
0
 public SerializableActionTarget(SerializableFieldSetter target)
 {
     TargetFieldSetter = target;
 }
Esempio n. 3
0
 private bool Equals(SerializableFieldSetter other)
 {
     return(Equals(containingType, other.containingType) &&
            Equals(fieldType, other.fieldType) &&
            string.Equals(fieldName, other.fieldName));
 }