C# Class Framework.Core.Helpers.Yaml.YamlMapping

Wraps Mapping object to provide dynamic access.
Inheritance: System.Dynamic.DynamicObject, IEnumerable
Datei anzeigen Open project: coreframework/Core-Framework Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
TryGetValue ( String key, Object &result ) : bool

Method Details

GetEnumerator() public method

Returns an enumerator that iterates through a collection.
public GetEnumerator ( ) : IEnumerator
return IEnumerator

TryGetIndex() public method

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.
return bool

TryGetMember() public method

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 .
return bool

YamlMapping() public method

Initializes a new instance of the YamlMapping class.
public YamlMapping ( Yaml.Grammar.Mapping mapping ) : System
mapping Yaml.Grammar.Mapping The mapping.
return System