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);
 }
Ejemplo n.º 3
0
 internal void AddProperty(DynamicTypeProperty property)
 {
     properties.Add(property);
 }
 public DynamicTypePropertiesBuilder(string name, Type type)
 {
     property = new DynamicTypeProperty(name, type);
 }
Ejemplo n.º 5
0
 public DynamicTypePropertyBuilder(DynamicTypeProperty property)
 {
     this.property = property;
 }