reflection.emit
How can I generate Virtual Properties with the AssemblyBuilder in C# 4.0?
I\'m currently working on creating an Assembly with virtual properties. The examples on MSDN are only creating normal properties. How do I create a class inside an assembly which has virtual propertie[详细]
2022-12-20 00:20 分类:问答I'm attempting to write a .NET compiler using System.Reflection.Emit how do I do type resolution?
I\'ve got a strat开发者_如何学JAVAegy for resolving types from referenced dlls. I\'m stuck on trying to resolve types that are defined in the assembly that is being compiled. I\'m using the System.Ref[详细]
2022-12-19 11:40 分类:问答How can I define two types referencing each other using IL Emit
I need to define something like this using reflection Emit: public class Foo { public Bar Bar { get; set; }[详细]
2022-12-19 05:44 分类:问答Reason why MethodBuilder.DefineParameter could not set parameter name?
I\'m creating an interface based on an existing interface for WCF concerns, but I have the \"DefineParameter\" not setting the parameter names (method parameters of the created type have no name).[详细]
2022-12-18 15:20 分类:问答Reflection IL Code
I\'m new to reflections. I need to create a class which inherits from a parent class. I need to create a readonly property. This property calls an existing function in the parent class by passing an a[详细]
2022-12-14 20:37 分类:问答ILASM for Compact Framework?
I\'m working with Linq expression trees (from the db4o/Mainsoft/Mono port) on the Compact Framework. Since System.Reflection.Emit doesn\'t exist, I can\'t compile my LambdaExpressions into delegates,[详细]
2022-12-14 16:05 分类:问答Performance of dynamically created type
Using C#, I am noticing a significant difference in perfomance when populating a list with instances of a dynamically generated type versus a simple struct. The code below includes 4 different methods[详细]
2022-12-14 09:25 分类:问答IL Emit for invoking a delegate instance?
Basically, I\'m accepting an event name as a string, to get the EventInfo. Then, I\'m discovering the event handler type and event argument type using reflection, creating a new delegate of that type[详细]
2022-12-12 14:40 分类:问答How do I emit code and inject it into a loaded assembly?
I\'ve built some Types dynamically using System.CodeDom.CodeCompileUnit, want to compile those into IL code i开发者_如何学Cn memory, and inject that IL code into an assembly loaded in memory - there i[详细]
2022-12-12 00:47 分类:问答Explicit interface implementation and Reflection.Emit
Does anybody know how to implement an interface\'s property explicitly us开发者_如何学JAVAing Reflection.Emit?See the MSDN documentation for TypeBuilder.DefineMethodOverride, which includes an example[详细]
2022-12-11 21:36 分类:问答