Méthode | Description | |
---|---|---|
GetEnumerator ( ) : IEnumerator |
Returns an enumerator that iterates through a collection.
|
|
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.
|
|
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.
|
|
YamlMapping ( Yaml.Grammar.Mapping mapping ) : System |
Initializes a new instance of the YamlMapping class.
|
Méthode | Description | |
---|---|---|
TryGetValue ( String key, Object &result ) : bool |
public TryGetIndex ( |
||
binder | 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, |
result | Object | The result of the index operation. |
Résultat | bool |
public TryGetMember ( |
||
binder | 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 |
|
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 |
Résultat | bool |
public YamlMapping ( Yaml.Grammar.Mapping mapping ) : System | ||
mapping | Yaml.Grammar.Mapping | The mapping. |
Résultat | System |