C# Class Scorchio.VisualStudio.Extensions.CodeClassExtensions

Defines the CodeClassExtensions type.
Exibir arquivo Open project: asudbury/NinjaCoderForMvvmCross

Public Methods

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

Method Details

AddDefaultConstructor() public static method

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

GetConstructors() public static method

Gets the constructors.
public static GetConstructors ( this instance ) : IEnumerable
instance this The instance.
return IEnumerable

GetFunction() public static method

Gets the function.
public static GetFunction ( this instance, string functionName ) : CodeFunction
instance this The instance.
functionName string Name of the function.
return CodeFunction

GetVariables() public static method

Gets the variables.
public static GetVariables ( this instance ) : IEnumerable
instance this The instance.
return IEnumerable

ImplementCodeSnippet() public static method

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

ImplementFunction() public static method

Implements the function.
public static ImplementFunction ( this instance, CodeSnippet codeSnippet ) : void
instance this The instance.
codeSnippet CodeSnippet The code snippet.
return void

ImplementInterface() public static method

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

ImplementMockCode() public static method

Implements the mock code.
public static ImplementMockCode ( this instance, CodeSnippet codeSnippet ) : void
instance this The instance.
codeSnippet CodeSnippet The code snippet.
return void

ImplementMockVariable() public static method

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.
return CodeVariable

ImplementVariable() public static method

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

RemoveComments() public static method

Removes the comments.
public static RemoveComments ( this instance ) : void
instance this The instance.
return void