反编译错误C#调用站点
使用Dotpeek反编译mvc web api时,出现了一些错误。反编译错误C#调用站点,c#,dotpeek,C#,Dotpeek,使用Dotpeek反编译mvc web api时,出现了一些错误。 这是反编译代码: public class SignalRNotifier : INotifier { private readonly IHubContext DashboardHub = GlobalHost.ConnectionManager.GetHubContext<Dashboard>(); public System.Threading.Tasks.Task Discuss
这是反编译代码:
public class SignalRNotifier : INotifier
{
private readonly IHubContext DashboardHub = GlobalHost.ConnectionManager.GetHubContext<Dashboard>();
public System.Threading.Tasks.Task DiscussionCreated(Delecs.Sapco.MinutesOfMeeting.Libs.DTO.Discussion.CreatedModel discussion, string[] users)
{
// ISSUE: reference to a compiler-generated field
if (SignalRNotifier.\u003C\u003Eo__2.\u003C\u003Ep__1 == null)
{
// ISSUE: reference to a compiler-generated field
SignalRNotifier.\u003C\u003Eo__2.\u003C\u003Ep__1 = CallSite<Func<CallSite, object, System.Threading.Tasks.Task>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof (System.Threading.Tasks.Task), typeof (SignalRNotifier)));
}
// ISSUE: reference to a compiler-generated field
Func<CallSite, object, System.Threading.Tasks.Task> func = SignalRNotifier.\u003C\u003Eo__2.\u003C\u003Ep__1.Target;
// ISSUE: reference to a compiler-generated field
CallSite<Func<CallSite, object, System.Threading.Tasks.Task>> callSite = SignalRNotifier.\u003C\u003Eo__2.\u003C\u003Ep__1;
// ISSUE: reference to a compiler-generated field
if (SignalRNotifier.\u003C\u003Eo__2.\u003C\u003Ep__0 == null)
{
// ISSUE: reference to a compiler-generated field
SignalRNotifier.\u003C\u003Eo__2.\u003C\u003Ep__0 = CallSite<Func<CallSite, object, Delecs.Sapco.MinutesOfMeeting.Libs.DTO.Discussion.CreatedModel, object>>.Create(Binder.InvokeMember(CSharpBinderFlags.None, "onDiscussionCreated", (IEnumerable<Type>) null, typeof (SignalRNotifier), (IEnumerable<CSharpArgumentInfo>) new CSharpArgumentInfo[2]
{
CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, (string) null),
CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, (string) null)
}));
}
// ISSUE: reference to a compiler-generated field
// ISSUE: reference to a compiler-generated field
object obj = SignalRNotifier.\u003C\u003Eo__2.\u003C\u003Ep__0.Target((CallSite) SignalRNotifier.\u003C\u003Eo__2.\u003C\u003Ep__0, this.DashboardHub.Clients.Users((IList<string>) users), discussion);
return func((CallSite) callSite, obj);
}
}
公共类信号通知者:INotifier
{
私有只读IHubContext DashboardHub=GlobalHost.ConnectionManager.GetHubContext();
public System.Threading.Tasks.Task DiscussionCreated(Delecs.Sapco.MinutesOfMeeting.Libs.DTO.Discussion.CreatedModel Discussion,string[]用户)
{
//问题:对编译器生成的字段的引用
if(信号通知程序。\u003C\u003Eo\uuuu2。\u003C\u003Ep\uuuu1==null)
{
//问题:对编译器生成的字段的引用
SignalNotifier.\u003C\u003Eo_uuuu2.\u003C\u003Ep_uuu1=CallSite.Create(Binder.Convert(CSharpBinderFlags.None)、typeof(System.Threading.Tasks.Task)、typeof(SignalNotifier));
}
//问题:对编译器生成的字段的引用
Func Func=signalNotifier。\u003C\u003Eo\uuuuu2。\u003C\u003Ep\uuuu1.Target;
//问题:对编译器生成的字段的引用
CallSite CallSite=signalNotifier。\u003C\u003Eo\uuu2。\u003C\u003Ep\u1;
//问题:对编译器生成的字段的引用
if(信号通知程序。\u003C\u003Eo\uuuu2。\u003C\u003Ep\uuuu0==null)
{
//问题:对编译器生成的字段的引用
SignalNotifier.\u003C\u003Eo\uuuuu 2.\u003C\u003Ep\uuuu 0=CallSite.Create(Binder.InvokeMember(CSharpBinderFlags.None,“onDiscussionCreated”,(IEnumerable)null,typeof(SignalNotifier),(IEnumerable)new CSharpArgumentInfo[2]
{
CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None,(字符串)null),
CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseComileTimeType,(字符串)null)
}));
}
//问题:对编译器生成的字段的引用
//问题:对编译器生成的字段的引用
object obj=signalNotifier。\u003C\u003Eo\uuu2。\u003C\u003Ep\u0.Target((调用站点)signalNotifier。\u003C\u003Eo\uu2。\u003C\u003Ep\u0,this.DashboardHub.Clients.Users((IList)Users),讨论);
返回func((CallSite)CallSite,obj);
}
}
我知道解决方案是手动重命名,但我不知道如何修复这一行:
SignalRNotifier.\u003C\u003Eo__2.\u003C\u003Ep__1 = CallSite<Func<CallSite, object, System.Threading.Tasks.Task>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(System.Threading.Tasks.Task), typeof(SignalRNotifier)));
SignalNotifier.\u003C\u003Eo_uuuuu2.\u003C\u003Ep_uuu1=CallSite.Create(Binder.Convert(CSharpBinderFlags.None,typeof(System.Threading.Tasks.Task),typeof(SignalNotifier));
可能是@SirRufo tnx的复制品,但我的问题是不同的。是什么让你感觉如此?不同的\uxxx代码?相信我,这是相同的原因和相同的解决方案(手动重命名)@SirRufo我知道解决方案是手动重命名的,但我不知道如何修复这一行:signalNotifier。\u003C\u003Eo\uuuuu 2。\u003C\u003Ep\uu 1=CallSite.Create(Binder.Convert(CSharpBinderFlags.None)、typeof(System.Threading.Tasks.Task)、typeof(signalNotifier));你发布了SignalNotifier类的全部代码了吗?