C# Класс Rebel.Framework.EntityGraph.Domain.Entity.Dynamic.DynamicTypedEntity

A dynamic implementation of the ITypedEntity object
Наследование: DynamicEntity, ITypedEntity
Показать файл Открыть проект

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

Метод Описание
TryGetMember ( GetMemberBinder binder, object &result ) : bool

Provides the implementation for operations that get member values. Classes derived from the T:System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations such as getting a value for a property.

TrySetMember ( SetMemberBinder binder, object value ) : bool

Provides the implementation for operations that set member values. Classes derived from the T:System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations such as setting a value for a property.

Приватные методы

Метод Описание
DynamicTypedEntity ( ITypedEntity entity ) : System
IsVowel ( char c ) : bool
MakePluralName ( string name ) : string
SpecificObjectInvariant ( ) : void
TryResolveAttribute ( DynamicEntity binderInfo ) : ITypedAttribute

Attempts to resolve the attribute from the binder information

TryResolveAttributeGroupDefinition ( DynamicEntity binderInfo ) : IAttributeGroupDefinition
TryResolveChildrenByTypeName ( DynamicEntity binderInfo ) : IEnumerable

Описание методов

TryGetMember() публичный Метод

Provides the implementation for operations that get member values. Classes derived from the T:System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations such as getting a value for a property.
public TryGetMember ( GetMemberBinder binder, object &result ) : bool
binder System.Dynamic.GetMemberBinder Provides information about the object that called the dynamic operation. The binder.Name property provides the name of the member on which the dynamic operation is performed. For example, for the Console.WriteLine(sampleObject.SampleProperty) statement, where sampleObject is an instance of the class derived from the class, binder.Name returns "SampleProperty". The binder.IgnoreCase property specifies whether the member name is case-sensitive.
result object The result of the get operation. For example, if the method is called for a property, you can assign the property value to .
Результат bool

TrySetMember() публичный Метод

Provides the implementation for operations that set member values. Classes derived from the T:System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations such as setting a value for a property.
public TrySetMember ( SetMemberBinder binder, object value ) : bool
binder System.Dynamic.SetMemberBinder Provides information about the object that called the dynamic operation. The binder.Name property provides the name of the member to which the value is being assigned. For example, for the statement sampleObject.SampleProperty = "Test", where sampleObject is an instance of the class derived from the class, binder.Name returns "SampleProperty". The binder.IgnoreCase property specifies whether the member name is case-sensitive.
value object The value to set to the member. For example, for sampleObject.SampleProperty = "Test", where sampleObject is an instance of the class derived from the class, the is "Test".
Результат bool