Class SimpleBuilder<T>
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
-
IBuilder<T>
- Inherited Members
Methods
Build(ref CultureInfo?)
Builds the object.
public T Build(ref CultureInfo? culture)
Parameters
cultureCultureInfo- 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
cultureCultureInfo- The preferred culture of the name. When the method returns, set to the actual culture of the name.
Returns
Remarks
It is recommended to get the name from a LocalizedResource.