Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LoweredMethodImplementationGenerator"/> class.
 /// </summary>
 /// <param name="targetModule">The module in which the method implementation should be generated.</param>
 /// <param name="targetType">The type in which the method implementation should be generated.</param>
 /// <param name="targetTypeConstructorIL">The IL generator for the target type's constructor.</param>
 /// <param name="options">The configuration object to use.</param>
 /// <param name="transformerRepository">The repository where type transformers are stored.</param>
 public LoweredMethodImplementationGenerator
 (
     [NotNull] ModuleBuilder targetModule,
     [NotNull] TypeBuilder targetType,
     [NotNull] ILGenerator targetTypeConstructorIL,
     ImplementationOptions options,
     [NotNull] TypeTransformerRepository transformerRepository
 )
     : base(targetModule, targetType, targetTypeConstructorIL, options)
 {
     _transformerRepository = transformerRepository;
     _methodGenerator       = new MethodImplementationGenerator(targetModule, targetType, targetTypeConstructorIL, options);
 }