Class Builder<T>
- Namespace
- WitShells.DesignPatterns.Core
Abstract base class for the Builder pattern. Extend this class and add fluent setter methods to construct complex objects step-by-step, keeping construction logic separate from the product class itself.
public abstract class Builder<T> : IBuilder<T>
Type Parameters
TThe type of object being built.
- Inheritance
-
Builder<T>
- Implements
-
IBuilder<T>
- Derived
- Inherited Members
Methods
Build()
Finalises and returns the constructed object.
public abstract T Build()
Returns
- T