C# Class Scorchio.VisualStudio.Services.ProjectItemService

Defines the ProjectItemService type.
Inheritance: IProjectItemService
显示文件 Open project: asudbury/NinjaCoderForMvvmCross Class Usage Examples

Public Methods

Method Description
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.

Method Details

AddHeaderComment() public method

Adds the header comment.
public AddHeaderComment ( string headerComment ) : void
headerComment string The header comment.
return void

AddNameSpace() public method

Adds the name space.
public AddNameSpace ( string nameSpace ) : CodeNamespace
nameSpace string The name space.
return CodeNamespace

AddUsingStatement() public method

Adds the using statement.
public AddUsingStatement ( string usingStatement ) : void
usingStatement string The using statement.
return void

CreateInterface() public method

Creates the interface.
public CreateInterface ( ) : CodeInterface
return CodeInterface

DeleteFolder() public method

Deletes the folder.
public DeleteFolder ( IEnumerable excludeFiles = null ) : void
excludeFiles IEnumerable The exclude files.
return void

FixUsingStatements() public method

Fixes the using statements.
public FixUsingStatements ( ) : void
return void

GetCSharpProjectItems() public method

Gets the c# project items.
public GetCSharpProjectItems ( ) : IEnumerable
return IEnumerable

GetFirstClass() public method

Gets the first class.
public GetFirstClass ( ) : CodeClass
return CodeClass

GetFirstCodeElement() public method

Gets the first code element.
public GetFirstCodeElement ( ) : CodeElement
return CodeElement

GetFirstInterface() public method

Gets the first interface.
public GetFirstInterface ( ) : CodeInterface
return CodeInterface

GetFirstNameSpace() public method

Gets the first name space.
public GetFirstNameSpace ( ) : CodeNamespace
return CodeNamespace

GetFolder() public method

Gets the folder.
public GetFolder ( string folderName ) : IProjectItemService
folderName string Name of the folder.
return IProjectItemService

GetFolder() public method

Gets the folder.
public GetFolder ( ) : string
return string

GetFolderOrCreate() public method

Gets the folder or create.
public GetFolderOrCreate ( string folderName ) : IProjectItemService
folderName string Name of the folder.
return IProjectItemService

GetFolderProjectItems() public method

Gets the folder project items.
public GetFolderProjectItems ( ) : IEnumerable
return IEnumerable

GetNameSpace() public method

Gets the name space.
public GetNameSpace ( ) : CodeNamespace
return CodeNamespace

GetProjectItem() public method

Gets the project item.
public GetProjectItem ( string name ) : IProjectItemService
name string The name.
return IProjectItemService

GetSubProjectItems() public method

Gets the sub project items.
public GetSubProjectItems ( ) : IEnumerable
return IEnumerable

GetUsingStatements() public method

Gets the using statements.
public GetUsingStatements ( ) : IEnumerable
return IEnumerable

ImplementCodeSnippet() public method

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].
return void

ImplementUnitTestingCodeSnippet() public method

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].
return void

IsCSharpFile() public method

Determines whether [is C sharp file].
public IsCSharpFile ( ) : bool
return bool

MoveUsingStatements() public method

Moves the using statements.
public MoveUsingStatements ( ) : void
return void

Open() public method

Opens this instance.
public Open ( ) : void
return void

ProjectItemService() public method

Initializes a new instance of the ProjectItemService class.
public ProjectItemService ( ProjectItem projectItem ) : System.Collections.Generic
projectItem ProjectItem The project item.
return System.Collections.Generic

Remove() public method

Removes this instance.
public Remove ( ) : void
return void

RemoveAndDelete() public method

Removes the and delete.
public RemoveAndDelete ( ) : void
return void

RemoveComments() public method

Removes the comments.
public RemoveComments ( ) : void
return void

RemoveDoubleBlankLines() public method

Removes the double blank lines.
public RemoveDoubleBlankLines ( ) : void
return void

RemoveHeader() public method

Removes the header.
public RemoveHeader ( ) : void
return void

ReplacePattern() public method

Replaces the pattern.
public ReplacePattern ( string text, string replacementText ) : void
text string The text.
replacementText string The replacement text.
return void

ReplaceText() public method

Replaces the text.
public ReplaceText ( string text, string replacementText ) : void
text string The text.
replacementText string The replacement text.
return void

Save() public method

Saves this instance.
public Save ( ) : void
return void

SortAndRemoveUsingStatements() public method

Sorts the and remove using statements.
public SortAndRemoveUsingStatements ( ) : void
return void