public PropertyCustomizer(PropertyCustomizerHolder propertyCustomizerHolder) { if (propertyCustomizerHolder == null) throw new ArgumentNullException(nameof(propertyCustomizerHolder)); this.propertyCustomizerHolder = propertyCustomizerHolder; }
public CustomizersHolder(Type type) { Type = type; foreach (var member in Type.GetProperties()) { _propertyCustomizers[member] = new PropertyCustomizerHolder(); } }
public CustomizersHolder(Type type) { Type = type; foreach (var member in Type.GetProperties()) { _propertyCustomizers[member] = new PropertyCustomizerHolder(); } }
public PropertyCustomizer(PropertyCustomizerHolder propertyCustomizerHolder) { if (propertyCustomizerHolder == null) { throw new ArgumentNullException(nameof(propertyCustomizerHolder)); } this.propertyCustomizerHolder = propertyCustomizerHolder; }
internal PropertyCustomizerHolder GetPropertyCustomizer(MemberInfo memberInfo) { var propertyInfo = (PropertyInfo)memberInfo; if (_propertyCustomizers.ContainsKey(propertyInfo) == false) { _propertyCustomizers[propertyInfo] = new PropertyCustomizerHolder(); } return(_propertyCustomizers[propertyInfo]); }
internal PropertyCustomizerHolder GetPropertyCustomizer(MemberInfo memberInfo) { var propertyInfo = (PropertyInfo)memberInfo; if (_propertyCustomizers.ContainsKey(propertyInfo) == false) { _propertyCustomizers[propertyInfo] = new PropertyCustomizerHolder(); } return _propertyCustomizers[propertyInfo]; }