c# - MonoDevelop.AssemblyBrowser. Can't see implementations of methods and properties. -


i tried play monodevelop.assemblybrowser (using monodevelop 5.9.6 on osx 10.10), decompile , see how of commonly used me types implemented. didn't manage see of them many of them atribute [methodimpl (methodimploptions.internalcall)] (from know - means implementation inside clr, correct me if wrong), or cant see body of method or property, in example (it system.mathf.max(int, int):int):

[reliabilitycontract (consistency.willnotcorruptstate, cer.success)] public static int max (int val1, int val2); /* body decompilation failed:  icsharpcode.decompiler.decompilerexception: error decompiling system.int32 system.math::max(system.int32,system.int32)  ---> system.overflowexception: number overflow.   @ (wrapper alloc) object:allocvector (intptr,intptr)   @ icsharpcode.decompiler.ilast.ilastbuilder+stackslot.modifystack (stackslot[] stack, int32 popcount, int32 pushcount, icsharpcode.decompiler.ilast.bytecode pushdefinition) [0x00000] in <filename unknown>:0    @ icsharpcode.decompiler.ilast.ilastbuilder.stackanalysis (mono.cecil.methoddefinition methoddef) [0x00000] in <filename unknown>:0    @ icsharpcode.decompiler.ilast.ilastbuilder.build (mono.cecil.methoddefinition methoddef, boolean optimize, icsharpcode.decompiler.decompilercontext context) [0x00000] in <filename unknown>:0    @ icsharpcode.decompiler.ast.astmethodbodybuilder.createmethodbody (ienumerable`1 parameters) [0x00000] in <filename unknown>:0    @ icsharpcode.decompiler.ast.astmethodbodybuilder.createmethodbody (mono.cecil.methoddefinition methoddef, icsharpcode.decompiler.decompilercontext context, ienumerable`1 parameters) [0x00000] in <filename unknown>:0    --- end of inner exception stack trace ---   @ icsharpcode.decompiler.ast.astmethodbodybuilder.createmethodbody (mono.cecil.methoddefinition methoddef, icsharpcode.decompiler.decompilercontext context, ienumerable`1 parameters) [0x00000] in <filename unknown>:0    @ icsharpcode.decompiler.ast.astbuilder.createmethodbody (mono.cecil.methoddefinition method, ienumerable`1 parameters) [0x00000] in <filename unknown>:0    @ icsharpcode.decompiler.ast.astbuilder.createmethod (mono.cecil.methoddefinition methoddef) [0x00000] in <filename unknown>:0    @ icsharpcode.decompiler.ast.astbuilder.addmethod (mono.cecil.methoddefinition method) [0x00000] in <filename unknown>:0    @ monodevelop.assemblybrowser.dommethodnodebuilder+<decompile>c__anonstorey0.<>m__0 (icsharpcode.decompiler.ast.astbuilder b) [0x00000] in <filename unknown>:0    @ monodevelop.assemblybrowser.dommethodnodebuilder.decompile (mono.texteditor.texteditordata data, mono.cecil.moduledefinition module, mono.cecil.typedefinition currenttype, system.action`1 setdata, icsharpcode.decompiler.decompilersettings settings) [0x00000] in <filename unknown>:0  */ 

or no exception thrown:

enter image description here

so know how see implementation code using these tools? doing wrong?

thanks.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -