我有
但是当我然后查看例如 .NET 框架中任何引用类的反编译源代码时,例如System.Console或 for Microsoft.AspNetCore.Builder(或几乎任何其他类型),我能看到的每个方法的主体都是 throw null(我在下面展示了一个摘录)
我已经阅读了这个问题(更新:和问题的答案是重复的),但是只有一个班级有这个问题(因为它是在增量更新中添加的)。对我来说,这个问题适用于 .NET 框架中的每个类。我究竟做错了什么?这是预期的行为,我应该使用 dotPeek 之类的东西吗?我可以使用符号服务器而不是反编译源吗?(原谅我的无知,我真的是 C# 的新手......和 .NET 世界)
region Assembly System.Console, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Console.dll
// Decompiled with ICSharpCode.Decompiler 4.0.0.4521
#endregion
using System.IO;
using System.Text;
namespace System
{
// Summary:
// ....
public static ConsoleColor BackgroundColor
{
get
{
throw null;
} …Run Code Online (Sandbox Code Playgroud)