用 Visual Studio 2008 可以參閱 .NET 原始碼

為了提供 debug 的需要,  .NET 的大部份原始碼可以經由Visual Studio 2008設定, 直接在 debug 時,

自動進 .NET 的原始碼內容。目前已經開放的原始碼有:

  • .NET Base Class Libraries (including System, System.CodeDom, System.Collections, System.ComponentModel, System.Diagnostics, System.Drawing, System.Globalization, System.IO, System.Net, System.Reflection, System.Runtime, System.Security, System.Text, System.Threading, etc).
  • ASP.NET (System.Web, System.Web.Extensions)
  • Windows Forms (System.Windows.Forms)
  • Windows Presentation Foundation (System.Windows)
  • ADO.NET and XML (System.Data and System.Xml)

WCF, Workflow, 及 LINQ尚未開放, 但近期內也會開放。

昇級 Visual Studio 2008 又多了一個好理由 :)

設定方式請參考:

https://blogs.msdn.com/sburke/archive/2008/01/16/configuring-visual-studio-to-debug-net-framework-source-code.aspx