¡@

Home 

c# Programming Glossary: opcodes.call

C# Get property value without creating instance?

http://stackoverflow.com/questions/11162652/c-sharp-get-property-value-without-creating-instance

generator.Emit OpCodes.Ldnull generator.Emit OpCodes.Call method generator.Emit OpCodes.Ret var ugly Func string dynamicMethod.CreateDelegate..

General purpose FromEvent method

http://stackoverflow.com/questions/12865848/general-purpose-fromevent-method

OpCodes.Ldloc arr call this.SetResult arr ilgen.Emit OpCodes.Call setResultMethodInfo and return ilgen.Emit OpCodes.Ret s_emittedHandlers.Add..

If an extension method has the same signature as a method in the sealed class, what is the call precedence?

http://stackoverflow.com/questions/2303885/if-an-extension-method-has-the-same-signature-as-a-method-in-the-sealed-class-w

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

typeof T .IsValueType OpCode callType isValueType OpCodes.Call OpCodes.Callvirt var add typeof List string .GetMethod Add .. T .IsValueType OpCode callType isValueType OpCodes.Call OpCodes.Callvirt var add typeof List string .GetMethod Add foreach var prop.. il.EmitCall callType prop.GetGetMethod null il.EmitCall OpCodes.Call eq null else il.EmitCall OpCodes.Call typeof EqualityComparer..

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

C var il dm.GetILGenerator il.Emit OpCodes.Ldarg_0 il.Emit OpCodes.Call m il.Emit OpCodes.Ret var action Action C dm.CreateDelegate..

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

target il.Emit OpCodes.Ldarg_0 target source il.EmitCall OpCodes.Callvirt prop.GetGetMethod null target value il.Emit OpCodes.Dup.. propType.GetProperty HasValue .GetGetMethod il.EmitCall OpCodes.Call hasValue null target value value.HasValue il.Emit OpCodes.Brtrue_S.. il.MarkLabel nonNull incoming target value il.EmitCall OpCodes.Callvirt prop.GetSetMethod null nix il.MarkLabel end incoming nix..