EmitLdarg_0() 개인적인 메소드

private EmitLdarg_0 ( ) : void
리턴 void
예제 #1
0
		private void EmitMethodEnumConstructor( Type baseType, TracingILGenerator il )
		{
			/*
			 *	.ctor( SerializationContext c, EnumSerializerMethod method ) 
			 *	  : base( c, method )
			 *	{
			 *	}
			 */
			// : base( c, method )
			il.EmitLdarg_0();
			il.EmitLdarg_1();
			il.EmitLdarg_2();

			il.EmitCallConstructor(
				baseType.GetRuntimeConstructor( ContextAndEnumSerializationMethodConstructorParameterTypes )
			);

			il.EmitRet();
		}
예제 #2
0
		private void EmitDefaultEnumConstructor( ConstructorBuilder methodConstructor, TracingILGenerator il )
		{
			/*
			 *	.ctor( SerializationContext c ) 
			 *	  : this( c, DEFAULT_METHOD )
			 *	{
			 *	}
			 */
			// : this( c, DEFAULT_METHOD )
			il.EmitLdarg_0();
			il.EmitLdarg_1();
			il.EmitAnyLdc_I4( ( int )this._defaultEnumSerializationMethod );

			il.EmitCallConstructor( methodConstructor );

			il.EmitRet();
		}