c# - DotPeek Decompile .dll File -


when decompile x.dll file can't rebuild , receive following errors


  • severity code description project file line suppression state error cs1001 identifier expected library c:\users\ ...\managers\rpchubmanager.cs 52 active

why dotpeek create strange code ,"o__sitecontainer6.<>p__site7 " ,and mean ??,how can solve problem ??, in advance

private void ontimerelapsed(object sender)         {             system.threading.threadpool.queueuserworkitem(delegate(object n)             {                 foreach (system.collections.generic.keyvaluepair<sessionmanager, string> current in rpchubmanager.dashboard_connections)                 {                     system.collections.generic.list<symbolminimizeddto> updatedsymbolsprices = this.trader_manager.getupdatedsymbolsprices(current.key, false);                     if (rpchubmanager.<ontimerelapsed>o__sitecontainer6.<>p__site7 == null)                     {                         rpchubmanager.<ontimerelapsed>o__sitecontainer6.<>p__site7 = callsite<action<callsite, object, string>>.create(binder.invokemember(csharpbinderflags.resultdiscarded, "updatesymbols", null, typeof(rpchubmanager), new csharpargumentinfo[]                         {                             csharpargumentinfo.create(csharpargumentinfoflags.none, null),                             csharpargumentinfo.create(csharpargumentinfoflags.usecompiletimetype, null)                         }));                     }                     rpchubmanager.<ontimerelapsed>o__sitecontainer6.<>p__site7.target(rpchubmanager.<ontimerelapsed>o__sitecontainer6.<>p__site7, this.hubcontext.clients.client(current.value), json.encode(updatedsymbolsprices));                 }             });         } 

your problem because il (common intermediate language) allows < , > symbols in variable names, c# doesn't.

for example:

rpchubmanager.<ontimerelapsed>o__sitecontainer6.<>p__site7 

it cannot compiled because of <ontimerelapsed>o__sitecontainer6 , <>p__site7 name.

replace

rpchubmanager.ontimerelapsedo__sitecontainer6.p__site7 

and works


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -