Reflector 出来的代码,怎么是这个样子?

hxuan 2012-08-20 03:58:05
我用reflector,查看代码,怎么是这个样子的。哪位能帮忙改成原始代码?多谢了。
private void DownloadCompleted(BytesProgressArgs arg)
{
if (CS$<>9__CachedAnonymousMethodDelegatec == null)
{
CS$<>9__CachedAnonymousMethodDelegatec = new Func<ServiceResponse<int, byte[]>, ServiceResponse>(null, (IntPtr) <DownloadCompleted>b__b);
}
base.GetServiceCompleted<ServiceResponse<int, byte[]>>(arg, EntServiceMethodType.ILogin_DownLoad, CS$<>9__CachedAnonymousMethodDelegatec, true);
}

[CompilerGenerated]
private static Func<ServiceResponse<int, byte[]>, ServiceResponse> CS$<>9__CachedAnonymousMethodDelegatec;


[CompilerGenerated]
private static ServiceResponse <DownloadCompleted>b__b(ServiceResponse<int, byte[]> response)
{
if (response.Successful && (UserConfig != null))
{
}
return response;
}






...全文
237 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
风一样的大叔 2012-08-23
  • 打赏
  • 举报
回复
jv9 2012-08-21
  • 打赏
  • 举报
回复
对于一些加密的DLL,Reflector无法完整的解析出代码。
你的代码,是被进行了混淆加密,使用一个特定的文件名替代CS$<>9__CachedAnonymousMethodDelegatec即可。

例如:

使用test_CachedAnonymousMethodDelegatec替换,阅读就简单很多.完整代码则是:


private void DownloadCompleted(BytesProgressArgs arg)
{
if (test_CachedAnonymousMethodDelegatec == null)
{
test_CachedAnonymousMethodDelegatec= new Func<ServiceResponse<int, byte[]>, ServiceResponse>(null, (IntPtr) <DownloadCompleted>b__b);
}
base.GetServiceCompleted<ServiceResponse<int, byte[]>>(arg, EntServiceMethodType.ILogin_DownLoad, test_CachedAnonymousMethodDelegatec, true);
}

[CompilerGenerated]
private static Func<ServiceResponse<int, byte[]>, ServiceResponse> test_CachedAnonymousMethodDelegatec;


[CompilerGenerated]
private static ServiceResponse <DownloadCompleted>b__b(ServiceResponse<int, byte[]> response)
{
if (response.Successful && (UserConfig != null))
{
}
return response;
}

8,737

社区成员

发帖
与我相关
我的任务
社区描述
WPF/Silverlight相关讨论
社区管理员
  • WPF/Silverlight社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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