Class SectionDefinitionBuilder<T>
Generic builder class for creating instances of the SectionDefinition class.
public class SectionDefinitionBuilder<T> where T : SectionDefinitionBuilder<T>
Type Parameters
T
The type of the builder class.
- Inheritance
-
SectionDefinitionBuilder<T>
- Derived
- Extension Methods
Constructors
- SectionDefinitionBuilder()
Initializes a new instance of the SectionDefinitionBuilder<T> class.
- SectionDefinitionBuilder(SectionDefinition)
Initializes a new instance of the SectionDefinitionBuilder<T> class with a specified section definition.
Fields
- _definition
The CustomSectionDefinition instance being built by the builder.
Methods
- AddFieldDescriptor(FieldDescriptor)
Adds a field descriptor to the section definition.
- AddFieldDescriptor(Action<FieldDescriptorBuilder>)
Adds a field descriptor to the section definition using a builder action.
- AddFieldDescriptor<TFieldDescriptor>(FieldDescriptorBuilder<TFieldDescriptor>)
Adds a field descriptor to the section definition using a builder.
- Build()
Builds the section definition.
- WithID(SectionDefinitionID)
Sets the ID for the section definition.
- WithID(Guid)
Sets the ID for the section definition using a GUID.
- WithName(string)
Sets the name for the section definition.
- WithReservationLinkInfo(ReservationLinkInfo)
Sets the reservation link info for the section definition.