据我所知,以下大多数类型现在并且一直是在mscorlib
和/或中定义的System.dll
。
但是,在查看 v4 框架目录(我安装了 4.5,不确定它是否也存在于 Vanilla v4 中)时,我找到了一个名为System.IO.dll
.
在反射器中检查它,我看不到任何实际代码。我能找到的只有以下条目:
[assembly: TypeForwardedTo(typeof(BinaryReader))]
[assembly: TypeForwardedTo(typeof(BinaryWriter))]
[assembly: TypeForwardedTo(typeof(EndOfStreamException))]
[assembly: TypeForwardedTo(typeof(FileNotFoundException))]
[assembly: TypeForwardedTo(typeof(InvalidDataException))]
[assembly: TypeForwardedTo(typeof(IOException))]
[assembly: TypeForwardedTo(typeof(MemoryStream))]
[assembly: TypeForwardedTo(typeof(SeekOrigin))]
[assembly: TypeForwardedTo(typeof(Stream))]
[assembly: TypeForwardedTo(typeof(StreamReader))]
[assembly: TypeForwardedTo(typeof(StreamWriter))]
[assembly: TypeForwardedTo(typeof(StringReader))]
[assembly: TypeForwardedTo(typeof(StringWriter))]
[assembly: TypeForwardedTo(typeof(TextReader))]
[assembly: TypeForwardedTo(typeof(TextWriter))]
所有都指向mscorlib
(我认为,还没有检查所有这些)。我环顾四周,看不到这些类型不在mscorlib
. 那么,有谁知道这个程序集为什么存在(为什么是现在)?