MsgPack.Serialization.EmittingSerializers.SerializerEmitter.CreateConstructor C# (CSharp) Method

CreateConstructor() private method

private CreateConstructor ( MethodAttributes attributes, Type parameterTypes, TracingILGenerator>.Action emitter ) : ConstructorBuilder
attributes MethodAttributes
parameterTypes System.Type
emitter TracingILGenerator>.Action
return System.Reflection.Emit.ConstructorBuilder
		private ConstructorBuilder CreateConstructor( MethodAttributes attributes, Type[] parameterTypes, Action<Type, TracingILGenerator> emitter )
		{
			var builder = this.DefineConstructor( attributes, parameterTypes );
			emitter( this._typeBuilder.BaseType, this.GetILGenerator( builder, parameterTypes ) );

#if DEBUG
			if ( SerializerDebugging.TraceEnabled )
			{
				SerializerDebugging.FlushTraceData();
			}
#endif // DEBUG

			return builder;
		}