C# Класс NArrange.Core.ProjectManager

Provides project/file retrieval and storage functionality.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CanParse ( string inputFile ) : bool

Determines whether or not the specified file can be parsed.

GetExtension ( string inputFile ) : string

Gets the file extension.

GetSourceFiles ( string fileName ) : ReadOnlyCollection

Gets all parse-able source files that are children of the specified solution or project. If an individual source file is provided, the same file name is returned.

GetSourceHandler ( string fileName ) : SourceHandler

Retrieves an extension handler.

IsProject ( string inputFile ) : bool

Determines whether or not the specified file is a project.

IsSolution ( string inputFile ) : bool

Determines whether or not the specified file is a solution.

ParseElements ( string inputFile, string text ) : ReadOnlyCollection

Parses code elements from the input file.

ProjectManager ( CodeConfiguration configuration ) : System

Creates a new FileManager.

Приватные методы

Метод Описание
GetDirectorySourceFiles ( string directory ) : ReadOnlyCollection

Gets all source file for a directory.

GetProjectHandler ( string fileName ) : ProjectHandler

Retrieves an extension handler for a project file.

GetProjectSourceFiles ( string fileName ) : ReadOnlyCollection

Gets all source files associated with a project.

GetSolutionSourceFiles ( string fileName ) : ReadOnlyCollection

Gets all source files associated with a solution.

Initialize ( ) : void

Initializes the manager from the configuration supplied during constuction.

IsRecognizedFile ( string fileName, ExtensionConfigurationCollection extensions ) : bool

Gets a boolean indicating whether or not the file is a recognized source file.

IsRecognizedSourceFile ( string fileName ) : bool

Gets a boolean indicating whether or not the file is a recognized source file.

Описание методов

CanParse() публичный Метод

Determines whether or not the specified file can be parsed.
public CanParse ( string inputFile ) : bool
inputFile string The input file.
Результат bool

GetExtension() публичный статический Метод

Gets the file extension.
public static GetExtension ( string inputFile ) : string
inputFile string The input file.
Результат string

GetSourceFiles() публичный Метод

Gets all parse-able source files that are children of the specified solution or project. If an individual source file is provided, the same file name is returned.
public GetSourceFiles ( string fileName ) : ReadOnlyCollection
fileName string Name of the file.
Результат ReadOnlyCollection

GetSourceHandler() публичный Метод

Retrieves an extension handler.
public GetSourceHandler ( string fileName ) : SourceHandler
fileName string Name of the file.
Результат SourceHandler

IsProject() публичный Метод

Determines whether or not the specified file is a project.
public IsProject ( string inputFile ) : bool
inputFile string Input file.
Результат bool

IsSolution() публичный статический Метод

Determines whether or not the specified file is a solution.
public static IsSolution ( string inputFile ) : bool
inputFile string The input file.
Результат bool

ParseElements() публичный Метод

Parses code elements from the input file.
public ParseElements ( string inputFile, string text ) : ReadOnlyCollection
inputFile string The input file.
text string The text of the input file.
Результат ReadOnlyCollection

ProjectManager() публичный Метод

Creates a new FileManager.
public ProjectManager ( CodeConfiguration configuration ) : System
configuration NArrange.Core.Configuration.CodeConfiguration The configuration.
Результат System