IL编译,请问怎样修改这段代码,使它永远返回true值,就是直接return true,在线等

shoppingjava 2020-11-07 02:20:28
.method public hidebysig newslot virtual final
instance class [mscorlib]System.Threading.Tasks.Task`1<bool>
IsLicensedAsync(class a.LicensingServer.Models.LicenseKey`1<!TEntityKey> key,
!TResourceType resourceType,
valuetype a.LicensingServer.Enums.LicenseScope scope) cil managed
{
.custom instance void [mscorlib]System.Runtime.CompilerServices.AsyncStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 3F 55 69 50 61 74 68 2E 4C 69 63 65 6E 73 // ..?a.Licens
69 6E 67 53 65 72 76 65 72 2E 4C 69 63 65 6E 73 // ingServer.Licens
69 6E 67 53 65 72 76 65 72 60 33 2B 3C 49 73 4C // ingServer`3+<IsL
69 63 65 6E 73 65 64 41 73 79 6E 63 3E 64 5F 5F // icensedAsync>d__
31 32 00 00 ) // 12..
// Code size 81 (0x51)
.maxstack 2
.locals init (valuetype a.LicensingServer.LicensingServer`3/'<IsLicensedAsync>d__12'<!TResource,!TResourceType,!TEntityKey> V_0,
valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<bool> V_1)
IL_0000: ldloca.s V_0
IL_0002: ldarg.0
IL_0003: stfld class a.LicensingServer.LicensingServer`3<!0,!1,!2> valuetype a.LicensingServer.LicensingServer`3/'<IsLicensedAsync>d__12'<!TResource,!TResourceType,!TEntityKey>::'<>4__this'
IL_0008: ldloca.s V_0
IL_000a: ldarg.1
IL_000b: stfld class a.LicensingServer.Models.LicenseKey`1<!2> valuetype a.LicensingServer.LicensingServer`3/'<IsLicensedAsync>d__12'<!TResource,!TResourceType,!TEntityKey>::key
IL_0010: ldloca.s V_0
IL_0012: ldarg.2
IL_0013: stfld !1 valuetype a.LicensingServer.LicensingServer`3/'<IsLicensedAsync>d__12'<!TResource,!TResourceType,!TEntityKey>::resourceType
IL_0018: ldloca.s V_0
IL_001a: ldarg.3
IL_001b: stfld valuetype a.LicensingServer.Enums.LicenseScope valuetype a.LicensingServer.LicensingServer`3/'<IsLicensedAsync>d__12'<!TResource,!TResourceType,!TEntityKey>::scope
IL_0020: ldloca.s V_0
IL_0022: call valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<!0> valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<bool>::Create()
IL_0027: stfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<bool> valuetype a.LicensingServer.LicensingServer`3/'<IsLicensedAsync>d__12'<!TResource,!TResourceType,!TEntityKey>::'<>t__builder'
IL_002c: ldloca.s V_0
IL_002e: ldc.i4.m1
IL_002f: stfld int32 valuetype a.LicensingServer.LicensingServer`3/'<IsLicensedAsync>d__12'<!TResource,!TResourceType,!TEntityKey>::'<>1__state'
IL_0034: ldloc.0
IL_0035: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<bool> valuetype a.LicensingServer.LicensingServer`3/'<IsLicensedAsync>d__12'<!TResource,!TResourceType,!TEntityKey>::'<>t__builder'
IL_003a: stloc.1
IL_003b: ldloca.s V_1
IL_003d: ldloca.s V_0
IL_003f: call instance void valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<bool>::Start<valuetype a.LicensingServer.LicensingServer`3/'<IsLicensedAsync>d__12'<!0,!1,!2>>(!!0&)
IL_0044: ldloca.s V_0
IL_0046: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<bool> valuetype a.LicensingServer.LicensingServer`3/'<IsLicensedAsync>d__12'<!TResource,!TResourceType,!TEntityKey>::'<>t__builder'
IL_004b: call instance class [mscorlib]System.Threading.Tasks.Task`1<!0> valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<bool>::get_Task()
IL_0050: ret
} // end of method LicensingServer`3::IsLicensedAsync
...全文
3177 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
shoppingjava 2020-11-08
  • 打赏
  • 举报
回复
请各位大佬帮忙看看。。。。。。。。。。。。。
好几只小萝莉 2020-11-08
  • 打赏
  • 举报
回复
这是在做什么坏事吗 插眼等教程

110,536

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

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