dynamicmethod Questions
5
Solved
As a bit of a novelty, I'm trying to see how different the IL from light weight code generated at runtime looks vs code generated by the VS compiler, as I noticed that VS code tends to run with a d...
Belted asked 10/11, 2010 at 16:55
1
Thanks to Hans Passant answering my question here:
How do I get an IL bytearray from a DynamicMethod?
I was able to get up and running. I am now trying to resolve the Metadata tokens found in the ...
Bathyal asked 10/11, 2010 at 19:31
1
Solved
I'm trying to call unmanaged printf-like function using DynamicMethod. At runtime I get a
BadImageFormatException:Index not found. (Exception from HRESULT:
0x80131124)
Is this a limitation o...
Atronna asked 5/4, 2015 at 15:0
2
Can someone explain or point to explanation why runtime types check not occurs in sample below - string property can be set to any type value ...
Stuck with this in very unexpected place and was re...
Cioffred asked 31/7, 2013 at 13:25
2
Solved
Is it possible to define a DynamicMethod with generic type parameters? The MethodBuilder class has the DefineGenericParameters method. Does the DynamicMethod have a counterpart? For example is it p...
Booher asked 25/4, 2009 at 9:51
1
Solved
Overview (forgive me for being so detailed, but I'd rather it be too much than too little): I'm attempting to edit the Dapper source for our solution in such a way that when any DateTime or Nullabl...
Paxwax asked 11/2, 2014 at 19:29
2
Solved
I wrote a simple object copier that copies public properties.
I can't figure out why the Dynamic method is a lot slower than the c# version.
Durations
C# method : 4,963 ms
Dynamic method : 19,9...
Seger asked 17/11, 2012 at 14:38
2
So, I recently did some experimenting and discovered that it appears that Reflection.Emit doesn't support all of the opcodes in the ECMA spec. There are 3 opcodes missing:
ldelem.any
stelem.any
...
Day asked 21/11, 2012 at 16:23
1
Solved
We can use the SuperObject library to invoke methods of a certain object by its name and giving its parameters as a json string using the SOInvoker method like in this answer
I'd like to know how ...
Madelainemadeleine asked 20/10, 2011 at 20:8
2
Solved
At runtime I'm grabbing a list of method names on a class, and I want to invoke these methods. I understand how to get the first part done from here:
http://docs.codehaus.org/display/GROOVY/JN3535-...
Schipperke asked 3/1, 2012 at 17:5
1
Solved
I've programmed .NET and C# for years now, but have only recently encountered the DynamicMethod type along with the concept of a Dynamic Assembly within the context of reflection. They seem to alwa...
Decreasing asked 21/12, 2011 at 15:15
1
Solved
I'm making a sound synthesis program in which the user can create his own sounds doing node-base compositing, creating oscillators, filters, etc.
The program compiles the nodes onto an intermediary...
Spannew asked 24/11, 2011 at 22:41
2
Solved
I have inherited code that uses DynamicMethod to generate methods at runtime. I also need to modify some of the code that is being generated.
Since I am a n00b at MSIL, I would love to be able to ...
Soothsayer asked 14/6, 2011 at 19:59
5
Solved
Suppose I have the following expressions:
Expression<Action<T, StringBuilder>> expr1 = (t, sb) => sb.Append(t.Name);
Expression<Action<T, StringBuilder>> expr2 = (t, sb)...
Ominous asked 10/3, 2010 at 17:24
2
I want to learn dynamic method and its practical example using c#.
Is there any relation between dynamic method and Reflection?
Please help me.
Lagasse asked 25/12, 2009 at 7:19
1
Solved
I'm currently doing some last-measure optimizations, mostly for fun and learning, and discovered something that left me with a couple of questions.
First, the questions:
When I construct a metho...
Caespitose asked 18/8, 2009 at 21:39
1
Solved
How do I define a DynamicMethod for a delegate that has an out-parameter, like this?
public delegate void TestDelegate(out Action a);
Let's say I simply want a method that sets the a argument to...
Guimpe asked 18/8, 2009 at 8:58
1
© 2022 - 2024 — McMap. All rights reserved.