Unavailable Operators in generated C# Code (methodof, fieldof) #141
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
MSIL supports some operations that are not available in the C# Language.
like the methodof() Operator.
AFAIK there should be another way to retrieve the wanted information for every occurence of this problem (methodof(), fieldof(), ...)
like Typeof(Number).GetMethod("myMethod")
Of course, this would lead to another result,
if you decompile an assembly to C#, and then compile it again,
but at leased, you are able to compile the generated code.
Maybe this behaviour should be configurable.
Tell me what you think about this topic,
maybe i can do it myself, and can make a pull request.
thanks for reading :)
Hey! Sorry but how is this a bug in Cecil :) ?
@SurfingNerd See https://github.com/Fody/InfoOf