예제 #1
0
 public EditProperty ForceProperty(string path)
 {
     return(EditProperty.New(
                this,
                target_type.GetVariableByPath(path)
                .AssertNotNull(() => new MissingFieldException("No property exists for type " + GetTargetType() + " and path " + path))
                ));
 }
예제 #2
0
 public IEnumerable <EditProperty> GetParameters()
 {
     return(function.GetParameters().ConvertWithIndex(
                (i, p) => EditProperty.New(
                    STATIC_TARGET,
                    new Variable_Element(arguments, i).GetOverridenTypeAndNameVariable(p.Value, p.Key)
                    )
                ));
 }
예제 #3
0
 public IEnumerable <EditProperty> GetAllPropertys()
 {
     return(target_type.GetFilteredInstanceFields(
                Filterer_Utility.Any(
                    Filterer_FieldInfo.HasCustomAttributeOfType <SerializeField>(),
                    Filterer_FieldInfo.HasCustomAttributeOfType <SerializeFieldEX>(),
                    Filterer_FieldInfo.IsPublicField(),
                    Filterer_FieldInfo.IsBackingFieldForPublicSetAndGet()
                    )
                ).Convert(f => f.CreateVariable())
            .Convert(v => EditProperty.New(this, v)));
 }
예제 #4
0
 public EditPropertyArrayElement(EditTarget t, Variable v, int i)
 {
     variable = v.GetVariableElement(i);
     property = EditProperty.New(t, variable);
 }