C# Класс FluentValidation.Internal.PropertyChain

Represents a chain of properties
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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