Пример #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);
 }