protected AvaloniaPropertyCustomSetter( AvaloniaXamlIlWellKnownTypes types, IXamlType declaringType, IXamlField avaloniaProperty, bool allowNull) { Types = types; AvaloniaProperty = avaloniaProperty; TargetType = declaringType; BinderParameters = new PropertySetterBinderParameters { AllowXNull = allowNull, AllowRuntimeNull = allowNull }; }
public AdderSetter(IXamlMethod getter, IXamlMethod adder) { _getter = getter; _adder = adder; TargetType = getter.DeclaringType; Parameters = adder.ParametersWithThis().Skip(1).ToList(); bool allowNull = Parameters.Last().AcceptsNull(); BinderParameters = new PropertySetterBinderParameters { AllowMultiple = true, AllowXNull = allowNull, AllowRuntimeNull = allowNull }; }