C# 클래스 Framework.Core.Helpers.Yaml.YamlMapping

Wraps Mapping object to provide dynamic access.
상속: System.Dynamic.DynamicObject, IEnumerable
파일 보기 프로젝트 열기: coreframework/Core-Framework 1 사용 예제들

공개 메소드들

메소드 설명
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