public DynamicTypeDescriptorBuilder AddField(DynamicTypeField field, Action <DynamicTypeFieldBuilder> configuration = null)
        {
            var builder = new DynamicTypeFieldBuilder(field);

            configuration?.Invoke(builder);
            dynamicTypeDescriptor.AddField(builder.Build());
            return(this);
        }
 public DynamicTypeFieldsBuilder(FieldInfo fieldInfo)
 {
     field = new DynamicTypeField(fieldInfo);
 }
 internal void AddField(DynamicTypeField field)
 {
     fields.Add(field);
 }
 public DynamicTypeFieldsBuilder(string name, Type type)
 {
     field = new DynamicTypeField(name, type);
 }
 public DynamicTypeFieldBuilder(DynamicTypeField field)
 {
     this.field = field;
 }