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;
}