强烈推荐!终于找到了一个查看 dotnet 源码的便捷方法

强烈推荐!终于找到了一个查看 dotnet 源码的便捷方法

快把这个网站加入标签栏 “https://source.dot.net/”

为什么推荐

  • GitHub生成,由Roslyn提供支持。
  • 不需要梯子,快速访问

如何使用

1、查找类型和成员声明、文件和程序集:

搜索内容示例
完整或部分类型或成员名称。字符串需要是前缀,“Builder"不会找到"StringBuilder”,但会找到"BuilderType"。使用引号可以找到确切的字符串(关闭前缀搜索)。BitConverter System.Console Debug.Assert “StringBuilder”
使用"assembly"前缀搜索程序集名称。assembly System.
使用关键字按成员类型过滤:assembly, type, class, struct, interface, enum, delegate, method, property, event, field, fileclass Assembly struct DateTime interface IQueryable
添加用空格分隔的单词,以过滤结果仅包含所有这些单词的结果。也可以按程序集名称过滤。task factory StringBuilder System.Private.CoreLib
查找.cs或.vb文件。Enumerable.cs
查找在字符串字面量中提到的GUIDs。8E9F5090-2D75-4d03-8A81-E5AFBF85DAF1

2、方便的超链接到文件、类型、成员和项目/程序集

当在文件中查看源代码时,底部的两个链接提供到当前文件和当前程序集的快捷方式。

点击行号可以获得指向特定行的超链接。

功能示例
链接到程序集/#System.IO .FileSystem
链接到文件/#System.Private.CoreLib/system/environment.cs
链接到行号/#System.Private.CoreLib/system/environment.cs #56
链接到类型/成员/System.Private.CoreLib/a.html#1f55292c3174123d(右键点击定义并选择复制快捷方式)
链接到搜索结果/#q=Color%20System.Drawing.Primitives

3、功能

功能描述
转到定义点击任何标识符即可转到定义。
查找所有引用点击定义中的符号名称以查找所有引用。查找引用还分别显示派生类型、接口实现、基成员、重写和被重写的成员、类实例化以及字段或属性写入。
高亮引用点击局部变量、参数或类型参数以在线源代码中高亮显示所有引用。
!在文档视图中,显示文件中的类型和成员列表。
!显示当前项目/程序集中的文件树视图。References和Used By文件夹列出依赖和被依赖的程序集(不适用于mscorlib)。
!显示当前项目/程序集中的命名空间和类型。
源码dll: ComSvcConfig mscorlib PresentationBuildTasks PresentationCore PresentationFramework PresentationFramework.Aero PresentationFramework.Classic PresentationFramework.Luna PresentationFramework.Royale SMDiagnostics SMSvcHost svcutil System System.Activities System.Activities.Core.Presentation System.Activities.DurableInstancing System.Activities.Presentation System.AddIn System.AddIn.Contract System.ComponentModel.DataAnnotations System.Configuration System.Core System.Data System.Data.DataSetExtensions System.Data.Entity System.Data.Entity.Design System.Data.Linq System.Data.Services System.Data.Services.Client System.Data.Services.Design System.Data.SqlXml System.Drawing System.IdentityModel System.IdentityModel.Selectors System.IO.Log System.Management System.Messaging System.Net System.Numerics System.Runtime.Caching System.Runtime.DurableInstancing System.Runtime.Remoting System.Runtime.Serialization System.Security System.ServiceModel System.ServiceModel.Activation System.ServiceModel.Activities System.ServiceModel.Channels System.ServiceModel.Discovery System.ServiceModel.Internals System.ServiceModel.Routing System.ServiceModel.WasHosting System.ServiceModel.Web System.Transactions System.Web System.Web.ApplicationServices System.Web.DynamicData System.Web.Entity System.Web.Entity.Design System.Web.Extensions System.Web.Mobile System.Web.Routing System.Web.Services System.Windows.Forms System.Workflow.Activities System.Workflow.ComponentModel System.Workflow.Runtime System.WorkflowServices System.Xaml.Hosting System.Xml System.Xml.Linq UIAutomationClient UIAutomationClientsideProviders WindowsBase WsatConfig WsatUI XamlBuildTask
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

LeiCodeX

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值