Table of Contents

Class SimpleBuilder<T>

Namespace
Cryville.EEW
Assembly
Cryville.EEW.dll
Represents a builder that builds another object with a parameterless constructor.
public abstract class SimpleBuilder<T> : IBuilder<T>, IBuilder, IPropertiesHolder, INamedComponent where T : new()

Type Parameters

T
The type of the target object.
Inheritance
SimpleBuilder<T>
Implements
Inherited Members

Methods

Build(ref CultureInfo?)

Builds the object.
public T Build(ref CultureInfo? culture)

Parameters

culture CultureInfo
The preferred culture of the object. When the method returns, set to the actual culture of the object.

Returns

T
The built object.

GetName(ref CultureInfo?)

Gets a human-readable name of the component.
public abstract string? GetName(ref CultureInfo? culture)

Parameters

culture CultureInfo
The preferred culture of the name. When the method returns, set to the actual culture of the name.

Returns

string

Remarks

It is recommended to get the name from a LocalizedResource.