C# Class Scorchio.VisualStudio.Extensions.CodeClassExtensions

Defines the CodeClassExtensions type.
Afficher le fichier Open project: asudbury/NinjaCoderForMvvmCross

Méthodes publiques

Méthode 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 méthode

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].
Résultat CodeFunction

GetConstructors() public static méthode

Gets the constructors.
public static GetConstructors ( this instance ) : IEnumerable
instance this The instance.
Résultat IEnumerable

GetFunction() public static méthode

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

GetVariables() public static méthode

Gets the variables.
public static GetVariables ( this instance ) : IEnumerable
instance this The instance.
Résultat IEnumerable

ImplementCodeSnippet() public static méthode

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].
Résultat void

ImplementFunction() public static méthode

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

ImplementInterface() public static méthode

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.
Résultat void

ImplementMockCode() public static méthode

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

ImplementMockVariable() public static méthode

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.
Résultat CodeVariable

ImplementVariable() public static méthode

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].
Résultat CodeVariable

RemoveComments() public static méthode

Removes the comments.
public static RemoveComments ( this instance ) : void
instance this The instance.
Résultat void