C# Класс Framework.Core.Helpers.Yaml.YamlMapping

Wraps Mapping object to provide dynamic access.
Наследование: System.Dynamic.DynamicObject, IEnumerable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
GetEnumerator ( ) : IEnumerator

Returns an enumerator that iterates through a collection.

TryGetIndex ( GetIndexBinder binder, Object indexes, Object &result ) : bool

Provides the implementation for operations that get a value by index. Classes derived from the T:System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for indexing operations.

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.

YamlMapping ( Yaml.Grammar.Mapping mapping ) : System

Initializes a new instance of the YamlMapping class.

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

Метод Описание
TryGetValue ( String key, Object &result ) : bool

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

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

Returns an enumerator that iterates through a collection.
public GetEnumerator ( ) : IEnumerator
Результат IEnumerator

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

Provides the implementation for operations that get a value by index. Classes derived from the T:System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for indexing operations.
public TryGetIndex ( GetIndexBinder binder, Object indexes, Object &result ) : bool
binder System.Dynamic.GetIndexBinder Provides information about the operation.
indexes Object The indexes that are used in the operation. For example, for the sampleObject[3] operation in C# (sampleObject(3) in Visual Basic), where sampleObject is derived from the DynamicObject class, first element is equal to 3.
result Object The result of the index operation.
Результат bool

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

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

Initializes a new instance of the YamlMapping class.
public YamlMapping ( Yaml.Grammar.Mapping mapping ) : System
mapping Yaml.Grammar.Mapping The mapping.
Результат System