Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » DynamicMethod » Reflection.Emit   (RSS)
Current dynamic method implementation does not have built-in support to pre-check whether the dynamic method code is verifiable. With bad IL sequence, very often you will get "System. InvalidProgramException : Common Language Runtime detected an invalid Read More...
Vararg (variable arguments) methods accept argument lists of unknown length and type. CLR supports this by the IL instruction (arglist) and other BCL types, such as System.ArgIterator . C# compiler has undocumented keyword "__arglist" to support defining Read More...
Q : Assume we have 2000 unknown types; (however) we know each type has a constructor with integer as its' only parameter type. How to create objects 10000 times for each type (and make such late-new fast)? Activator.CreateInstance comes to my fingers Read More...
 
Page view tracker