gremit
gremit copied to clipboard
.NET Reflection.Emit extensions
Results
2
gremit issues
Sort by
recently updated
recently updated
newest added
![image](https://user-images.githubusercontent.com/6436116/156139206-5e901ecf-e5a1-469b-9309-3ce5d224166c.png) IRemoteMessageSenderDelegate BuildSenderDelegate(MethodInfo methodInfo, Type inputType) { return (IRemoteMessageSenderDelegate)Activator.CreateInstance(typeof(RemoteMessageSenderDelegate).MakeGenericType(inputType ?? typeof(object), methodInfo.ReturnType), methodInfo, OxygenIocContainer.Resolve()); }
We are trying to emit Ldftn instruction. In some cases we see exception System.ArgumentException. Look at this code: ```C# public class Dummy { public static int Add10(int x) { return...