src/Foundation/Data/Gimela.Data.JsonExtension/DynamicJson.cs
/// <summary>
/// Provides the implementation for operations that get a value by index. Classes derived from the <see cref="T:System.Dynamic.DynamicObject"/> class can override this method to specify dynamic behavior for indexing operations.
/// </summary>
/// <param name="binder">Provides information about the operation.</param>
/// <param name="indexes">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, indexes[0] is equal to 3.</param>
/// <param name="result">The result of the index operation.</param>
/// <returns>
/// true if the operation is successful; otherwise, false. If this method returns false, the run-time binder of the language determines the behavior. (In most cases, a run-time exception is thrown.)
/// </returns>
Provides the implementation for operations that get a value by index. Classes derived from the  class can override this method to specify dynamic behavior for indexing operations.
Provides the implementation for operations that get a value by index . Classes derived from the class can override this method to specify dynamic behavior for indexing operations .
public override bool TryGetIndex(GetIndexBinder binder, object[] indexes, out object result)
    {
      return (IsArray)
          ? TryGet(xml.Elements().ElementAtOrDefault((int)indexes[0]), out result)
          : TryGet(xml.Element((string)indexes[0]), out result);
    }
public override bool TryGetIndex ( GetIndexBinder binder , object [ ] indexes , out object result ) { return ( IsArray ) ? TryGet ( xml . Elements ( ) . ElementAtOrDefault ( ( int ) indexes [ 0 ] ) , out result ) : TryGet ( xml . Element ( ( string ) indexes [ 0 ] ) , out result ) ; }
Provides the implementation for operations that get a value by index.
Provides the implementation for operations that get a value by index .
true if the operation is successful; otherwise, false. If this method returns false, the run-time binder of the language determines the behavior. (In most cases, a run-time exception is thrown.)
true if the operation is successful ; otherwise false . If this method returns false the run - time binder of the language determines the behavior . ( In most cases a run - time exception is thrown . )
binder
GetIndexBinder
Provides information about the operation.
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, indexes[0] is equal to 3.
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 indexes [ 0 ] is equal to 3 .
object
out
result
The result of the index operation.
The result of the index operation .