/// <param name="name">Provide alternate name within all `valueProviders` to bind to this property.</param> /// <param name="order">Provide explicit order of binding when matched with other usages of `HybridPropertyAttribute` on the same property.</param> protected HybridBindPropertyAttribute( HybridModelBinder.BindStrategy strategy, string[] valueProviders, [CallerMemberName] string name = default(string), [CallerLineNumber] int order = default(int)) : this(valueProviders, name, order) { Strategy = strategy ?? throw new ArgumentNullException(nameof(strategy)); }
protected FromAttribute(HybridModelBinder.BindStrategy strategy, params string[] valueProviders) : this(valueProviders) { if (strategy == null) { throw new ArgumentNullException(nameof(strategy)); } Strategy = strategy; }