We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f3a8aa commit b3f19a2Copy full SHA for b3f19a2
Testing.Dynamic.Json/DJsonArray.cs
@@ -1,5 +1,4 @@
1
using System.Collections.Generic;
2
-using System.Dynamic;
3
using System.Linq;
4
using System.Text.Json.Serialization;
5
@@ -16,12 +15,6 @@ public class DJsonArray : DJson
16
15
17
public override List<object> InnerList => _list;
18
19
- public override bool TryGetIndex(GetIndexBinder binder, object[] indexes, out object result)
20
- {
21
- result = indexes.Length == 1 && indexes[0] is int index && index >= 0 && index < _list.Count ? _list[index] : null;
22
- return true;
23
- }
24
-
25
public override object this[int index] => index >= 0 && index < _list.Count ? _list[index] : null;
26
}
27
0 commit comments