我有一个很长的 .cs 文件(许多这样的文件),为了加快安全审核,我想查看该文件所引用的类的列表。
例如:
using System;
using System.Collections;
using System.Collections.Generic;
using System.Net;
using OrganizationName;
namespace OurCodebase
{
public class NeedsAudit
{
public void DoSomething()
{
System.IO.File.ReadAllText( "" );
WebRequest wr = WebRequest.Create( "" );
OurFramework.Clients.Search( "*jason*" );
}
}
}
这应该会产生一个列表:
System.IO.File
System.Net.WebRequest
OrganizationName.OurFramework.Clients
有没有办法在 Visual Studio 中执行此操作,或者可能是一个可以解析代码并提取此列表的程序?