Пример #1
0
        public PropertyCustomizer(PropertyCustomizerHolder propertyCustomizerHolder)
        {
            if (propertyCustomizerHolder == null)
                throw new ArgumentNullException(nameof(propertyCustomizerHolder));

            this.propertyCustomizerHolder = propertyCustomizerHolder;
        }
Пример #2
0
 public CustomizersHolder(Type type)
 {
     Type = type;
     foreach (var member in Type.GetProperties())
     {
         _propertyCustomizers[member] = new PropertyCustomizerHolder();
     }
 }
Пример #3
0
 public CustomizersHolder(Type type)
 {
     Type = type;
     foreach (var member in Type.GetProperties())
     {
         _propertyCustomizers[member] = new PropertyCustomizerHolder();
     }
 }
Пример #4
0
        public PropertyCustomizer(PropertyCustomizerHolder propertyCustomizerHolder)
        {
            if (propertyCustomizerHolder == null)
            {
                throw new ArgumentNullException(nameof(propertyCustomizerHolder));
            }

            this.propertyCustomizerHolder = propertyCustomizerHolder;
        }
Пример #5
0
        internal PropertyCustomizerHolder GetPropertyCustomizer(MemberInfo memberInfo)
        {
            var propertyInfo = (PropertyInfo)memberInfo;

            if (_propertyCustomizers.ContainsKey(propertyInfo) == false)
            {
                _propertyCustomizers[propertyInfo] = new PropertyCustomizerHolder();
            }
            return(_propertyCustomizers[propertyInfo]);
        }
Пример #6
0
 internal PropertyCustomizerHolder GetPropertyCustomizer(MemberInfo memberInfo)
 {
     var propertyInfo = (PropertyInfo)memberInfo;
     if (_propertyCustomizers.ContainsKey(propertyInfo) == false)
     {
         _propertyCustomizers[propertyInfo] = new PropertyCustomizerHolder();
     }
     return _propertyCustomizers[propertyInfo];
 }