C# Класс Scorchio.VisualStudio.Services.ProjectItemService

Defines the ProjectItemService type.
Наследование: IProjectItemService
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AddHeaderComment ( string headerComment ) : void

Adds the header comment.

AddNameSpace ( string nameSpace ) : CodeNamespace

Adds the name space.

AddUsingStatement ( string usingStatement ) : void

Adds the using statement.

CreateInterface ( ) : CodeInterface

Creates the interface.

DeleteFolder ( IEnumerable excludeFiles = null ) : void

Deletes the folder.

FixUsingStatements ( ) : void

Fixes the using statements.

GetCSharpProjectItems ( ) : IEnumerable

Gets the c# project items.

GetFirstClass ( ) : CodeClass

Gets the first class.

GetFirstCodeElement ( ) : CodeElement

Gets the first code element.

GetFirstInterface ( ) : CodeInterface

Gets the first interface.

GetFirstNameSpace ( ) : CodeNamespace

Gets the first name space.

GetFolder ( string folderName ) : IProjectItemService

Gets the folder.

GetFolder ( ) : string

Gets the folder.

GetFolderOrCreate ( string folderName ) : IProjectItemService

Gets the folder or create.

GetFolderProjectItems ( ) : IEnumerable

Gets the folder project items.

GetNameSpace ( ) : CodeNamespace

Gets the name space.

GetProjectItem ( string name ) : IProjectItemService

Gets the project item.

GetSubProjectItems ( ) : IEnumerable

Gets the sub project items.

GetUsingStatements ( ) : IEnumerable

Gets the using statements.

ImplementCodeSnippet ( CodeSnippet codeSnippet, bool formatFunctionParameters ) : void

Implements the code snippet.

ImplementUnitTestingCodeSnippet ( CodeSnippet codeSnippet, string codeFile, bool removeHeader, bool removeComments, bool formatFunctionParameters ) : void

Implements the unit testing code snippet.

IsCSharpFile ( ) : bool

Determines whether [is C sharp file].

MoveUsingStatements ( ) : void

Moves the using statements.

Open ( ) : void

Opens this instance.

ProjectItemService ( ProjectItem projectItem ) : System.Collections.Generic

Initializes a new instance of the ProjectItemService class.

Remove ( ) : void

Removes this instance.

RemoveAndDelete ( ) : void

Removes the and delete.

RemoveComments ( ) : void

Removes the comments.

RemoveDoubleBlankLines ( ) : void

Removes the double blank lines.

RemoveHeader ( ) : void

Removes the header.

ReplacePattern ( string text, string replacementText ) : void

Replaces the pattern.

ReplaceText ( string text, string replacementText ) : void

Replaces the text.

Save ( ) : void

Saves this instance.

SortAndRemoveUsingStatements ( ) : void

Sorts the and remove using statements.

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

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

Adds the header comment.
public AddHeaderComment ( string headerComment ) : void
headerComment string The header comment.
Результат void

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

Adds the name space.
public AddNameSpace ( string nameSpace ) : CodeNamespace
nameSpace string The name space.
Результат CodeNamespace

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

Adds the using statement.
public AddUsingStatement ( string usingStatement ) : void
usingStatement string The using statement.
Результат void

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

Creates the interface.
public CreateInterface ( ) : CodeInterface
Результат CodeInterface

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

Deletes the folder.
public DeleteFolder ( IEnumerable excludeFiles = null ) : void
excludeFiles IEnumerable The exclude files.
Результат void

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

Fixes the using statements.
public FixUsingStatements ( ) : void
Результат void

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

Gets the c# project items.
public GetCSharpProjectItems ( ) : IEnumerable
Результат IEnumerable

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

Gets the first class.
public GetFirstClass ( ) : CodeClass
Результат CodeClass

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

Gets the first code element.
public GetFirstCodeElement ( ) : CodeElement
Результат CodeElement

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

Gets the first interface.
public GetFirstInterface ( ) : CodeInterface
Результат CodeInterface

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

Gets the first name space.
public GetFirstNameSpace ( ) : CodeNamespace
Результат CodeNamespace

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

Gets the folder.
public GetFolder ( string folderName ) : IProjectItemService
folderName string Name of the folder.
Результат IProjectItemService

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

Gets the folder.
public GetFolder ( ) : string
Результат string

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

Gets the folder or create.
public GetFolderOrCreate ( string folderName ) : IProjectItemService
folderName string Name of the folder.
Результат IProjectItemService

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

Gets the folder project items.
public GetFolderProjectItems ( ) : IEnumerable
Результат IEnumerable

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

Gets the name space.
public GetNameSpace ( ) : CodeNamespace
Результат CodeNamespace

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

Gets the project item.
public GetProjectItem ( string name ) : IProjectItemService
name string The name.
Результат IProjectItemService

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

Gets the sub project items.
public GetSubProjectItems ( ) : IEnumerable
Результат IEnumerable

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

Gets the using statements.
public GetUsingStatements ( ) : IEnumerable
Результат IEnumerable

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

Implements the code snippet.
public ImplementCodeSnippet ( CodeSnippet codeSnippet, bool formatFunctionParameters ) : void
codeSnippet CodeSnippet The code snippet.
formatFunctionParameters bool if set to true [format function parameters].
Результат void

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

Implements the unit testing code snippet.
public ImplementUnitTestingCodeSnippet ( CodeSnippet codeSnippet, string codeFile, bool removeHeader, bool removeComments, bool formatFunctionParameters ) : void
codeSnippet CodeSnippet The code snippet.
codeFile string The code file.
removeHeader bool if set to true [remove header].
removeComments bool if set to true [remove comments].
formatFunctionParameters bool if set to true [format function parameters].
Результат void

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

Determines whether [is C sharp file].
public IsCSharpFile ( ) : bool
Результат bool

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

Moves the using statements.
public MoveUsingStatements ( ) : void
Результат void

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

Opens this instance.
public Open ( ) : void
Результат void

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

Initializes a new instance of the ProjectItemService class.
public ProjectItemService ( ProjectItem projectItem ) : System.Collections.Generic
projectItem ProjectItem The project item.
Результат System.Collections.Generic

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

Removes this instance.
public Remove ( ) : void
Результат void

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

Removes the and delete.
public RemoveAndDelete ( ) : void
Результат void

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

Removes the comments.
public RemoveComments ( ) : void
Результат void

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

Removes the double blank lines.
public RemoveDoubleBlankLines ( ) : void
Результат void

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

Removes the header.
public RemoveHeader ( ) : void
Результат void

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

Replaces the pattern.
public ReplacePattern ( string text, string replacementText ) : void
text string The text.
replacementText string The replacement text.
Результат void

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

Replaces the text.
public ReplaceText ( string text, string replacementText ) : void
text string The text.
replacementText string The replacement text.
Результат void

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

Saves this instance.
public Save ( ) : void
Результат void

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

Sorts the and remove using statements.
public SortAndRemoveUsingStatements ( ) : void
Результат void