Interface IGeneratable<TSelf>
- Namespace
- Cratis.Concepts
- Assembly
- Cratis.Fundamentals.dll
Defines a value that can create a new instance of itself.
public interface IGeneratable<TSelf> where TSelf : IGeneratable<TSelf>
Type Parameters
TSelfThe type that generates its own instances.
- Extension Methods
Remarks
If a type also implements IGeneratableInContext<TSelf>, callers use the context form.
Methods
New()
Creates a new value using the type's generation strategy.
public static abstract TSelf New()
Returns
- TSelf
A new instance of
TSelf.