Interface IGorgonFluentBuilder<TB, TBo>
An interface that defines a standard set of functionality for a builder pattern object.
Namespace: Gorgon.Core
Assembly: Gorgon.Core.dll
Syntax
public interface IGorgonFluentBuilder<out TB, TBo> where TB : class where TBo : class
Type Parameters
Name | Description |
---|---|
TB | The type of builder. Used to return a fluent interface for the builder. |
TBo | The type of object produced by the builder. |
Remarks
This interface is used to define a fluent builder pattern for creating objects.
Methods
| Edit this page View SourceBuild()
Function to return the object.
Declaration
TBo Build()
Returns
Type | Description |
---|---|
TBo | The object created or updated by this builder. |
Clear()
Function to clear the builder to a default state.
Declaration
TB Clear()
Returns
Type | Description |
---|---|
TB | The fluent builder interface. |
ResetTo(TBo)
Function to reset the builder to the specified object state.
Declaration
TB ResetTo(TBo builderObject = null)
Parameters
Type | Name | Description |
---|---|---|
TBo | builderObject | [Optional] The specified object state to copy. |
Returns
Type | Description |
---|---|
TB | The fluent builder interface. |