高分求助,如闲分数不够,开贴再送 请高手帮忙将一个il的方法,转成c#的。谢谢

peenyking 2011-06-27 10:43:02

public static bool GetCusInfo(string s)
{
locals:
V_0: string[]
V_1: string
V_2: System.Xml.XmlDocument
V_3: bool
V_4: bool
V_5: int
V_6: int
V_7: int
V_8: int

ldc.i4 4
stloc V_8
br.s label_2
label_1:
ldloc V_7
switch (label_9,label_3,label_14,label_22,label_5,label_26,label_24,label_28,label_20,label_10,label_16,label_12,label_25,label_30,label_7)
label_2:
ldc.i4 0x10
stloc V_6
ldc.i4 1
stloc V_7
br.s label_1
label_3:
br.s label_13
label_4:
ldc.i4 4
stloc V_7
br.s label_1
label_5:
ldc.i4.1
br.s label_11
label_6:
ldc.i4 0xE
stloc V_7
br.s label_1
label_7:
br label_31
label_8:
ldc.i4 0
stloc V_7
br label_1
label_9:
ldloc.s V_4
brtrue label_27
ldc.i4 9
stloc V_7
br label_1
label_10:
br label_29
label_11:
brfalse label_17
ldc.i4 0xB
stloc V_7
br label_1
label_12:
br label_17
label_13:
call string[] WC.Tool.JScript.JavaScriptRequestUrl()
stloc.0
ldloc.0
ldc.i4.1
ldelem.ref
callvirt string System.String.ToUpper()
callvirt string System.String.Trim()
ldarg.0
callvirt string System.String.ToUpper()
callvirt string System.String.Trim()
call bool System.String.op_Equality(string, string)
ldc.i4.0
ceq
stloc.s V_4
ldc.i4 1
stloc V_5
ldc.i4 2
stloc V_7
br label_1
label_14:
br label_23
label_15:
call string WC.Tool.JScript.GetPat()
stloc.1
call System.Web.HttpContext System.Web.HttpContext.get_Current()
callvirt System.Web.HttpServerUtility System.Web.HttpContext.get_Server()
ldloc.1
callvirt string System.Web.HttpServerUtility.MapPath(string)
stloc.1
newobj System.Xml.XmlDocument..ctor()
stloc.2
ldloc.2
ldloc.1
callvirt void System.Xml.XmlDocument.Load(string)
ldloc.2
ldstr "\uCDAA\uCDA6\uD5A7\uD5BF\uFFFD\uFFFD\uD5F6\uD5AA\uCDBF\uFFFD"
ldloc V_8
call string Root.<Module>.a(string, int)
ldloc V_6
call string Root.<Module>.a(string, int)
callvirt System.Xml.XmlNode System.Xml.XmlNode.SelectSingleNode(string)
callvirt System.Xml.XmlAttributeCollection System.Xml.XmlNode.get_Attributes()
ldstr "\uCD9F\uCDA8\uD5A5\uD5AC\uFFFD\uFFFD"
ldloc V_8
call string Root.<Module>.a(string, int)
ldloc V_6
call string Root.<Module>.a(string, int)
callvirt System.Xml.XmlAttribute System.Xml.XmlAttributeCollection.get_ItemOf(string)
ldloc.0
ldc.i4.0
ldelem.ref
callvirt void System.Xml.XmlNode.set_Value(string)
ldloc.2
ldstr "\uCDAA\uCDA6\uD5A7\uD5BF\uFFFD\uFFFD\uD5F6\uD5BD\uCDBF\uFFFD"
ldloc V_8
call string Root.<Module>.a(string, int)
ldloc V_6
call string Root.<Module>.a(string, int)
callvirt System.Xml.XmlNode System.Xml.XmlNode.SelectSingleNode(string)
callvirt System.Xml.XmlAttributeCollection System.Xml.XmlNode.get_Attributes()
ldstr "\uCD9F\uCDA8\uD5A5\uD5AC\uFFFD\uFFFD"
ldloc V_8
call string Root.<Module>.a(string, int)
ldloc V_6
call string Root.<Module>.a(string, int)
callvirt System.Xml.XmlAttribute System.Xml.XmlAttributeCollection.get_ItemOf(string)
ldloc.0
ldc.i4.1
ldelem.ref
callvirt void System.Xml.XmlNode.set_Value(string)
ldloc.2
ldloc.1
callvirt void System.Xml.XmlDocument.Save(string)
call System.Web.HttpContext System.Web.HttpContext.get_Current()
callvirt System.Web.HttpApplicationState System.Web.HttpContext.get_Application()
call string WC.Tool.JScript.JavaScriptGetUrlAction()
call int WC.Tool.JScript.JavascriptOpenDiv()
box int
callvirt void System.Web.HttpApplicationState.set_Item(string, object)
ldc.i4.1
stloc.3
ldc.i4 0
stloc V_5
ldc.i4 0xA
stloc V_7
br label_1
label_16:
br label_23
label_17:
ldc.i4.1
br.s label_18
ldc.i4.0
label_18:
brfalse.s label_19
label_19:
ldc.i4 8
stloc V_7
br label_1
label_20:
br label_31
label_21:
ldc.i4 3
stloc V_7
br label_1
label_22:
br label_15
label_23:
ldc.i4 6
stloc V_7
br label_1
label_24:
ldloc V_5
switch (label_4,label_8,label_6,label_21)
ldc.i4 0xC
stloc V_7
br label_1
label_25:
br label_13
ldc.i4 5
stloc V_7
br label_1
label_26:
ldc.i4.0
br label_11
label_27:
ldc.i4.0
stloc.3
ldc.i4 2
stloc V_5
ldc.i4 7
stloc V_7
br label_1
label_28:
br.s label_23
label_29:
ldc.i4 3
stloc V_5
ldc.i4 0xD
stloc V_7
br label_1
label_30:
br label_23
label_31:
ldloc.3
ret
}



这里面读的xml文件内容是:

<?xml version="1.0" encoding="utf-8"?>
<config>
<cv Value="CECEAE60" />
<tv Value="CECEAE60" />
</config>


麻烦高手将这个段代码转成c#的,谢谢。
如分数太低,我将另开新帖送分。
只要方法出来,可再送300分,急
...全文
120 13 打赏 收藏 转发到动态 举报
写回复
用AI写文章
13 条回复
切换为时间正序
请发表友善的回复…
发表回复
crackdung 2011-06-30
  • 打赏
  • 举报
回复
沒幫你重寫的,,,你真有心情啊,沒事做嗎
ycproc 2011-06-30
  • 打赏
  • 举报
回复
反编译工具 去看
白鸽 2011-06-30
  • 打赏
  • 举报
回复
头大!帮顶,友情帮顶
至尊贱客 2011-06-30
  • 打赏
  • 举报
回复
DLL都不给看都不愿意看啊,头晕
kingdom_0 2011-06-30
  • 打赏
  • 举报
回复
反编译.
FocusNT 2011-06-28
  • 打赏
  • 举报
回复
蹲坑的...
woshiliourun 2011-06-28
  • 打赏
  • 举报
回复
顶下···
peenyking 2011-06-28
  • 打赏
  • 举报
回复
谁能帮帮忙?
crackdung 2011-06-27
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 peenyking 的回复:]

这段代码无法用Reflector 查看到,被混淆了。
如果可以将这段代码反编译成那些C#的cs文件, 请留下邮箱,我把dll文件发给你。
现在我用的工具 还只能将这些代码反编译成il的,无法直接反编译成c#的
[/Quote]

你這樣要別人寫,沒人想幫你,,,你共享dll吧
peenyking 2011-06-27
  • 打赏
  • 举报
回复
这段代码无法用Reflector 查看到,被混淆了。
如果可以将这段代码反编译成那些C#的cs文件, 请留下邮箱,我把dll文件发给你。
现在我用的工具 还只能将这些代码反编译成il的,无法直接反编译成c#的
crackdung 2011-06-27
  • 打赏
  • 举报
回复
你用Reflector 就能看到了
wjhgzx 2011-06-27
  • 打赏
  • 举报
回复
路过帮顶

110,566

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧