Reflector 出来的代码,怎么是这个样子?
我用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;
}
[解决办法]
对于一些加密的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;}