Skip to content

Commit b3f19a2

Browse files
committed
Remove unused dynamic TryGetIndex
1 parent 1f3a8aa commit b3f19a2

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Testing.Dynamic.Json/DJsonArray.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System.Collections.Generic;
2-
using System.Dynamic;
32
using System.Linq;
43
using System.Text.Json.Serialization;
54

@@ -16,12 +15,6 @@ public class DJsonArray : DJson
1615

1716
public override List<object> InnerList => _list;
1817

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-
2518
public override object this[int index] => index >= 0 && index < _list.Count ? _list[index] : null;
2619
}
2720
}

0 commit comments

Comments
 (0)