void IParameterModelBaseConvention.Apply(ParameterModelBase parameterModel) { if (parameterModel == null) { throw new ArgumentNullException(nameof(parameterModel)); } _parameterBaseModelConvention.Apply(parameterModel); }
/// <summary> /// Copy constructor. /// </summary> /// <param name="other">The other instance to copy</param> protected ParameterModelBase(ParameterModelBase other) { if (other == null) { throw new ArgumentNullException(nameof(other)); } ParameterType = other.ParameterType; Attributes = new List <object>(other.Attributes); BindingInfo = other.BindingInfo == null ? null : new BindingInfo(other.BindingInfo); Name = other.Name; Properties = new Dictionary <object, object?>(other.Properties); }
public void Apply(ParameterModelBase parameter) { _convention.Apply(parameter); }
public void Apply(ParameterModelBase modelBase) { var property = (PropertyModel)modelBase; property.Controller.ControllerProperties.Remove(property); }
public void Apply(ParameterModelBase action) { action.Properties.Add("TestProperty", "TestValue"); }