C# Класс Scorchio.VisualStudio.Extensions.CodeClassExtensions

Defines the CodeClassExtensions type.
Показать файл Открыть проект

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

Метод Описание
AddDefaultConstructor ( this instance, bool moveToCorrectPosition ) : CodeFunction

add a default constructor.

GetConstructors ( this instance ) : IEnumerable

Gets the constructors.

GetFunction ( this instance, string functionName ) : CodeFunction

Gets the function.

GetVariables ( this instance ) : IEnumerable

Gets the variables.

ImplementCodeSnippet ( this instance, CodeSnippet codeSnippet, bool formatFunctionParameters ) : void

Implements the code snippet.

ImplementFunction ( this instance, CodeSnippet codeSnippet ) : void

Implements the function.

ImplementInterface ( this instance, CodeFunction constructor, string variable ) : void

Implements the interface.

ImplementMockCode ( this instance, CodeSnippet codeSnippet ) : void

Implements the mock code.

ImplementMockVariable ( this instance, string name, string type, string mockVariableDeclaration ) : CodeVariable

Implements the mock variable.

ImplementVariable ( this instance, string name, string type, bool isReadOnly ) : CodeVariable

Implements the variable.

RemoveComments ( this instance ) : void

Removes the comments.

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

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

add a default constructor.
public static AddDefaultConstructor ( this instance, bool moveToCorrectPosition ) : CodeFunction
instance this The instance.
moveToCorrectPosition bool if set to true [move to correct position].
Результат CodeFunction

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

Gets the constructors.
public static GetConstructors ( this instance ) : IEnumerable
instance this The instance.
Результат IEnumerable

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

Gets the function.
public static GetFunction ( this instance, string functionName ) : CodeFunction
instance this The instance.
functionName string Name of the function.
Результат CodeFunction

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

Gets the variables.
public static GetVariables ( this instance ) : IEnumerable
instance this The instance.
Результат IEnumerable

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

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

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

Implements the function.
public static ImplementFunction ( this instance, CodeSnippet codeSnippet ) : void
instance this The instance.
codeSnippet CodeSnippet The code snippet.
Результат void

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

Implements the interface.
public static ImplementInterface ( this instance, CodeFunction constructor, string variable ) : void
instance this The instance.
constructor CodeFunction The constructor.
variable string The variable.
Результат void

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

Implements the mock code.
public static ImplementMockCode ( this instance, CodeSnippet codeSnippet ) : void
instance this The instance.
codeSnippet CodeSnippet The code snippet.
Результат void

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

Implements the mock variable.
public static ImplementMockVariable ( this instance, string name, string type, string mockVariableDeclaration ) : CodeVariable
instance this The instance.
name string The name.
type string The type.
mockVariableDeclaration string The mock variable declaration.
Результат CodeVariable

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

Implements the variable.
public static ImplementVariable ( this instance, string name, string type, bool isReadOnly ) : CodeVariable
instance this The instance.
name string The name.
type string The type.
isReadOnly bool if set to true [is read only].
Результат CodeVariable

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

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