Interface IContextedGenerator<TContext, TOut>
Represents a generator that generates objects of a specific type from input objects, with contexts.
public interface IContextedGenerator<in TContext, out TOut> : IGenerator<TOut> where TContext : class
Type Parameters
TContext- The type of the context.
TOut- The type of the generated objects.
- Inherited Members
Methods
Generate(object, TContext?, ref CultureInfo)
Generates the object.
TOut Generate(object e, TContext? context, ref CultureInfo culture)
Parameters
eobject- The input object.
contextTContext- The context.
cultureCultureInfo- The preferred culture of the generated object. When the method returns, set to the actual culture of the generated object.
Returns
- TOut
- The generated object.