public DynamicTypeDescriptorBuilder AddProperty(DynamicTypeProperty property, Action <DynamicTypePropertyBuilder> configuration = null)
        {
            var builder = new DynamicTypePropertyBuilder(property);

            configuration?.Invoke(builder);
            dynamicTypeDescriptor.AddProperty(builder.Build());
            return(this);
        }
 public DynamicTypePropertiesBuilder(PropertyInfo propertyInfo)
 {
     property = new DynamicTypeProperty(propertyInfo);
 }
Пример #3
0
 internal void AddProperty(DynamicTypeProperty property)
 {
     properties.Add(property);
 }
 public DynamicTypePropertiesBuilder(string name, Type type)
 {
     property = new DynamicTypeProperty(name, type);
 }
Пример #5
0
 public DynamicTypePropertyBuilder(DynamicTypeProperty property)
 {
     this.property = property;
 }