Class FieldDescriptorBuilder<T, TFieldDescriptor>
Generic builder class for creating instances of the FieldDescriptor class.
public abstract class FieldDescriptorBuilder<T, TFieldDescriptor> where T : FieldDescriptorBuilder<T, TFieldDescriptor> where TFieldDescriptor : FieldDescriptor, new()
Type Parameters
T
The type of the builder class.
TFieldDescriptor
The type of field descriptor.
- Inheritance
-
FieldDescriptorBuilder<T, TFieldDescriptor>
- Derived
- Extension Methods
Constructors
- FieldDescriptorBuilder(TFieldDescriptor)
Initializes a new instance of the FieldDescriptorBuilder<T, TFieldDescriptor> class with a specified field descriptor.
Fields
- _fieldDescriptor
The FieldDescriptor instance being built by the builder.
Methods
- Build()
Builds the field descriptor.
- WithDefaultValue(IValueWrapper)
Sets the default value for the field descriptor.
- WithHidden(bool)
Sets whether the field descriptor is hidden.
- WithID(FieldDescriptorID)
Sets the ID for the field descriptor.
- WithID(Guid)
Sets the ID for the field descriptor using a GUID.
- WithIsOptional(bool)
Sets whether the field descriptor is optional.
- WithName(string)
Sets the name for the field descriptor.
- WithReadonly(bool)
Sets whether the field descriptor is read-only.
- WithSoftDeleted(bool)
Sets whether the field descriptor is soft deleted.
- WithTooltip(string)
Sets the tooltip for the field descriptor.
- WithType(Type)
Sets the type for the field descriptor.