Gorgon
Show / Hide Table of Contents

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 Source

Build()

Function to return the object.

Declaration
TBo Build()
Returns
Type Description
TBo

The object created or updated by this builder.

| Edit this page View Source

Clear()

Function to clear the builder to a default state.

Declaration
TB Clear()
Returns
Type Description
TB

The fluent builder interface.

| Edit this page View Source

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.

Extension Methods

GorgonDebugExtensions.ValidateObject<T>(T, string)
GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)
  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author