Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
就像你创建自己的类,设计你的函数,并且可以看到你在你的函数(或方法)中使用的代码一样,我想看到 VS 2012 内置的函数中使用的代码。就像数学一样。例如,POW 想要查看用于实现这一目标的代码。或者在 Console 类中,我想查看 WriteLine、Write 等函数中的代码。
我想这样做的原因是因为有时我正在调用更复杂的函数或我正在使用的类,我觉得我只是在使用我不知道它们实际上是如何工作的工具。
您正在寻找 .NET 源代码:
http://referencesource.microsoft.com/netframework.aspx
或者,使用JustDecompile 等反编译器。
您可以通过 .NET Framework 的元数据查看源代码,方法是单击感兴趣的方法并按下F12或右键单击鼠标并Go To Definition从上下文菜单中进行选择。
Go To Definition
我认为最好的答案是这个网站:
点网内部
用它来将一些我可能不需要的类移植到 Mono。