反编译乱码对比

乱码

    // 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();
    }
}
原文地址:https://www.cnblogs.com/wangyinlon/p/12566333.html