C# 클래스 NStub.CSharp.ObjectGeneration.FluentCodeBuild.CodeLocalVariableBinder

Build a local variable from fluent parameters.
파일 보기 프로젝트 열기: Jedzia/NStub 1 사용 예제들

Private Properties

프로퍼티 타입 설명
CodeLocalVariableBinder System
CodeLocalVariableBinder System
Commit System.CodeDom.CodeMemberMethod

공개 메소드들

메소드 설명
Assign ( ) : CodeLocalVariableBinder

Completes the creation of the reference type with an assignment of a member field.

Commit ( ) : CodeMemberMethod

Completes the creation of the reference type.

StaticClass ( string className ) : CodeTypeReferenceBinder

Add a reference to a static class to the method body. Like 'Assert' or 'DateTime'.

With ( object value ) : CodeLocalVariableBinder

Add a primitive parameter to the method invocation.

비공개 메소드들

메소드 설명
CodeLocalVariableBinder ( CodeMemberMethod method, CodeVariableDeclarationStatement variableDeclaration ) : System

Initializes a new instance of the CodeLocalVariableBinder class with a local variable declaration.

CodeLocalVariableBinder ( CodeMemberMethod method, CodeVariableReferenceExpression reference ) : System

Initializes a new instance of the CodeLocalVariableBinder class with a reference to a variable.

Commit ( CodeTypeReferenceBinder binder ) : CodeMemberMethod

Completes the creation of the reference type from a CodeTypeReferenceBinder build reference.

메소드 상세

Assign() 공개 메소드

Completes the creation of the reference type with an assignment of a member field.
public Assign ( ) : CodeLocalVariableBinder
리턴 CodeLocalVariableBinder

Commit() 공개 메소드

Completes the creation of the reference type.
Cannot add not assigned local variable to a method.Use /// (...) or (...) to specify a initialization expression.
public Commit ( ) : CodeMemberMethod
리턴 System.CodeDom.CodeMemberMethod

StaticClass() 공개 메소드

Add a reference to a static class to the method body. Like 'Assert' or 'DateTime'.
public StaticClass ( string className ) : CodeTypeReferenceBinder
className string Name of the class.
리턴 CodeTypeReferenceBinder

With() 공개 메소드

Add a primitive parameter to the method invocation.
public With ( object value ) : CodeLocalVariableBinder
value object The object to represent by the primitive expression.
리턴 CodeLocalVariableBinder