Interface IContextedGenerator<TIn, TContext, TOut>
Represents a generator that generates objects of a specific type from input objects of another specific type, with contexts.
public interface IContextedGenerator<in TIn, in TContext, out TOut> : IGenerator<TIn, TOut>, IContextedGenerator<TContext, TOut>, IGenerator<TOut> where TContext : class
Type Parameters
TIn- The type of the input objects.
TContext- The type of the context.
TOut- The type of the generated objects.
- Inherited Members
Methods
Generate(TIn, TContext?, ref CultureInfo)
Generates the object.
TOut Generate(TIn e, TContext? context, ref CultureInfo culture)
Parameters
eTIn- 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.