Interface IBuildable<TSelf, TBuilder>
Represents builder pattern contract.
Namespace: DotNext.Patterns
Assembly: DotNext.dll
Syntax
public interface IBuildable<out TSelf, out TBuilder> where TSelf : notnull, IBuildable<out TSelf, out TBuilder> where TBuilder : notnull, ISupplier<out TSelf>, IResettable
Type Parameters
Name | Description |
---|---|
TSelf | The type that can be constructed using builder pattern. |
TBuilder | The type of the builder. |
Methods
| Edit this page View SourceCreateBuilder()
Creates a new builder for type TSelf
.
Declaration
public static abstract TBuilder CreateBuilder()
Returns
Type | Description |
---|---|
TBuilder | A new builder for type |