欢迎来到银龙的博客

人生三从境界:昨夜西风凋碧树,独上高楼,望尽天涯路。 衣带渐宽终不悔,为伊消得人憔悴。 众里寻他千百度,蓦然回首,那人却在灯火阑珊处。

反编译乱码对比

乱码

    // Token: 0x02000006 RID: 6
    public class ExternalLinksController : Controller
    {
        // Token: 0x06000014 RID: 20 RVA: 0x00002AB9 File Offset: 0x00000CB9
        public ExternalLinksController(IExternalSiteInfoService externalSiteInfoService)
        {
            this._externalSiteInfoService = externalSiteInfoService;
        }

        // Token: 0x06000015 RID: 21 RVA: 0x00002AC8 File Offset: 0x00000CC8
        [CheckLogOn]
        public ActionResult Index()
        {
            return base.View();
        }

        // Token: 0x06000016 RID: 22 RVA: 0x00002AD0 File Offset: 0x00000CD0
        [CheckLogOn]
        public ActionResult CreateLinks()
        {
            return base.View();
        }

        // Token: 0x06000017 RID: 23 RVA: 0x00002AD8 File Offset: 0x00000CD8
        [CheckLogOn]
        public ActionResult UpdateLinks(Guid id)
        {
            if (ExternalLinksController.<UpdateLinks>o__SiteContainer0.<>p__Site1 == null)
            {
                ExternalLinksController.<UpdateLinks>o__SiteContainer0.<>p__Site1 = CallSite<Func<CallSite, object, Guid, object>>.Create(Binder.SetMember(CSharpBinderFlags.None, "siteInfoId", typeof(ExternalLinksController), new CSharpArgumentInfo[]
                {
                    CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
                    CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null)
                }));
            }
            ExternalLinksController.<UpdateLinks>o__SiteContainer0.<>p__Site1.Target(ExternalLinksController.<UpdateLinks>o__SiteContainer0.<>p__Site1, base.ViewBag, id);
            return base.View();
        }

        // Token: 0x04000009 RID: 9
        private readonly IExternalSiteInfoService _externalSiteInfoService;

        // Token: 0x02000016 RID: 22
        [CompilerGenerated]
        private static class <UpdateLinks>o__SiteContainer0
        {
            // Token: 0x0400003A RID: 58
            public static CallSite<Func<CallSite, object, Guid, object>> <>p__Site1;
        }
    }

正常

public class ExternalLinksController : Controller
{
    private readonly IExternalSiteInfoService _externalSiteInfoService;

    public ExternalLinksController(IExternalSiteInfoService externalSiteInfoService)
    {
        _externalSiteInfoService = externalSiteInfoService;
    }

    [CheckLogOn]
    public ActionResult Index()
    {
        return View();
    }

    [CheckLogOn]
    public ActionResult CreateLinks()
    {
        return View();
    }

    [CheckLogOn]
    public ActionResult UpdateLinks(Guid id)
    {
        base.ViewBag.siteInfoId = id;
        return View();
    }
}

 

posted on 2020-03-25 15:02  银龙科技  阅读(1075)  评论(0编辑  收藏  举报

导航