C# 클래스 Scorchio.VisualStudio.Extensions.CodeClassExtensions

Defines the CodeClassExtensions type.
파일 보기 프로젝트 열기: asudbury/NinjaCoderForMvvmCross

공개 메소드들

메소드 설명
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