Tag: 参考源

在StringBuilder.ToString()的上下文中是什么意思?

stringbuilder.cs的参考源页面在ToString方法中有这个注释: if (chunk.m_ChunkLength > 0) { // Copy these into local variables so that they // are stable even in the presence of —-s (hackers might do this) char[] sourceArray = chunk.m_ChunkChars; int chunkOffset = chunk.m_ChunkOffset; int chunkLength = chunk.m_ChunkLength; 这是什么意思? 恶意用户可能会插入要格式化的string吗?

无法步入.NET框架源代码

我正在使用Visual Studio 2013,并有一个.NET 4.5.2项目。 我已经按照以下页面设置了我的设置: http://referencesource.microsoft.com/setup.html 通过这个设置,我可以看到所有必要的符号都被下载并加载了,但是我不能进入如下代码: var cookieContainer = new System.Net.CookieContainer(); 我得到一个来源不可用消息。 我可以进入下面的代码就好了: Console.WriteLine("test"); 你有什么想法,为什么我可以从mscorlib.dll代码,但不能从System.dll代码进入?