C# 클래스 FluentValidation.Internal.PropertyChain

Represents a chain of properties
파일 보기 프로젝트 열기: JeremySkinner/FluentValidation 1 사용 예제들

공개 메소드들

메소드 설명
Add ( MemberInfo member ) : void

Adds a MemberInfo instance to the chain

Add ( string propertyName ) : void

Adds a property name to the chain

AddIndexer ( object indexer ) : void

Adds an indexer to the property chain. For example, if the following chain has been constructed: Parent.Child then calling AddIndexer(0) would convert this to: Parent.Child[0]

BuildPropertyName ( string propertyName ) : string

Builds a property path.

FromExpression ( LambdaExpression expression ) : PropertyChain

Creates a PropertyChain from a lambda expresion

IsChildChainOf ( PropertyChain parentChain ) : bool

Checks if the current chain is the child of another chain. For example, if chain1 were for "Parent.Child" and chain2 were for "Parent.Child.GrandChild" then chain2.IsChildChainOf(chain1) would be true.

PropertyChain ( ) : System

Creates a new PropertyChain.

PropertyChain ( IEnumerable memberNames ) : System

Creates a new PropertyChain

PropertyChain ( PropertyChain parent ) : System

Creates a new PropertyChain based on another.

ToString ( ) : string

Creates a string representation of a property chain.

메소드 상세

Add() 공개 메소드

Adds a MemberInfo instance to the chain
public Add ( MemberInfo member ) : void
member System.Reflection.MemberInfo Member to add
리턴 void

Add() 공개 메소드

Adds a property name to the chain
public Add ( string propertyName ) : void
propertyName string Name of the property to add
리턴 void

AddIndexer() 공개 메소드

Adds an indexer to the property chain. For example, if the following chain has been constructed: Parent.Child then calling AddIndexer(0) would convert this to: Parent.Child[0]
public AddIndexer ( object indexer ) : void
indexer object
리턴 void

BuildPropertyName() 공개 메소드

Builds a property path.
public BuildPropertyName ( string propertyName ) : string
propertyName string
리턴 string

FromExpression() 공개 정적인 메소드

Creates a PropertyChain from a lambda expresion
public static FromExpression ( LambdaExpression expression ) : PropertyChain
expression System.Linq.Expressions.LambdaExpression
리턴 PropertyChain

IsChildChainOf() 공개 메소드

Checks if the current chain is the child of another chain. For example, if chain1 were for "Parent.Child" and chain2 were for "Parent.Child.GrandChild" then chain2.IsChildChainOf(chain1) would be true.
public IsChildChainOf ( PropertyChain parentChain ) : bool
parentChain PropertyChain The parent chain to compare
리턴 bool

PropertyChain() 공개 메소드

Creates a new PropertyChain.
public PropertyChain ( ) : System
리턴 System

PropertyChain() 공개 메소드

Creates a new PropertyChain
public PropertyChain ( IEnumerable memberNames ) : System
memberNames IEnumerable
리턴 System

PropertyChain() 공개 메소드

Creates a new PropertyChain based on another.
public PropertyChain ( PropertyChain parent ) : System
parent PropertyChain
리턴 System

ToString() 공개 메소드

Creates a string representation of a property chain.
public ToString ( ) : string
리턴 string