c# Programming Glossary: opcodes.ldarg_0
General purpose FromEvent method http://stackoverflow.com/questions/12865848/general-purpose-fromevent-method load zero argument i.e. this onto the stack ilgen.Emit OpCodes.Ldarg_0 load the array onto the stack ilgen.Emit OpCodes.Ldloc arr..
Anyone know a quick way to get to custom attributes on an enum value? http://stackoverflow.com/questions/17772/anyone-know-a-quick-way-to-get-to-custom-attributes-on-an-enum-value loads the object into the stack ilGenerator.Emit OpCodes.Ldarg_0 calls the getter ilGenerator.EmitCall OpCodes.Callvirt propInfo.GetGetMethod..
Get an IDataReader from a typed List http://stackoverflow.com/questions/2258310/get-an-idatareader-from-a-typed-list generator setter.GetILGenerator generator.Emit OpCodes.Ldarg_0 generator.Emit OpCodes.Castclass propertyInfo.DeclaringType.. generator.DeclareLocal typeof object generator.Emit OpCodes.Ldarg_0 generator.Emit OpCodes.Castclass propertyInfo.DeclaringType..
Comparing 2 objects and retrieve a list of fields with different values http://stackoverflow.com/questions/3060382/comparing-2-objects-and-retrieve-a-list-of-fields-with-different-values isValueType il.Emit OpCodes.Ldarga_S byte 0 else il.Emit OpCodes.Ldarg_0 il.EmitCall callType prop.GetGetMethod null if isValueType.. isValueType il.Emit OpCodes.Ldarga_S byte 0 else il.Emit OpCodes.Ldarg_0 il.EmitCall callType prop.GetGetMethod null if isValueType.. isValueType il.Emit OpCodes.Ldarga_S byte 0 else il.Emit OpCodes.Ldarg_0 il.EmitCall callType prop.GetGetMethod null if isValueType..
How to invoke (non virtually) the original implementation of a virtual method? http://stackoverflow.com/questions/3378010/how-to-invoke-non-virtually-the-original-implementation-of-a-virtual-method new typeof C typeof C var il dm.GetILGenerator il.Emit OpCodes.Ldarg_0 il.Emit OpCodes.Call m il.Emit OpCodes.Ret var action Action..
Dynamically create a class in C# http://stackoverflow.com/questions/3862226/dynamically-create-a-class-in-c-sharp getIl getPropMthdBldr.GetILGenerator getIl.Emit OpCodes.Ldarg_0 getIl.Emit OpCodes.Ldfld fieldBuilder getIl.Emit OpCodes.Ret.. setIl.MarkLabel modifyProperty setIl.Emit OpCodes.Ldarg_0 setIl.Emit OpCodes.Ldarg_1 setIl.Emit OpCodes.Stfld fieldBuilder..
Looking for a fast and easy way to coalesce all properties on a POCO http://stackoverflow.com/questions/7422861/looking-for-a-fast-and-easy-way-to-coalesce-all-properties-on-a-poco of int etc skip il.Emit OpCodes.Ldarg_1 target il.Emit OpCodes.Ldarg_0 target source il.EmitCall OpCodes.Callvirt prop.GetGetMethod..
How can I write a generic container class that implements a given interface in C#? http://stackoverflow.com/questions/847809/how-can-i-write-a-generic-container-class-that-implements-a-given-interface-in-c var il ctor.GetILGenerator store the items il.Emit OpCodes.Ldarg_0 il.Emit OpCodes.Ldarg_1 il.Emit OpCodes.Stfld fld il.Emit OpCodes.Ret.. var iter il.DeclareLocal typeof IEnumerator T il.Emit OpCodes.Ldarg_0 il.Emit OpCodes.Ldfld fld il.EmitCall OpCodes.Callvirt typeof..
|