diff --git a/Antlr4.Runtime/Dfa/SparseEdgeMap`1.cs b/Antlr4.Runtime/Dfa/SparseEdgeMap`1.cs index 410c51914..d65567f14 100644 --- a/Antlr4.Runtime/Dfa/SparseEdgeMap`1.cs +++ b/Antlr4.Runtime/Dfa/SparseEdgeMap`1.cs @@ -42,7 +42,7 @@ namespace Antlr4.Runtime.Dfa private readonly int[] keys; - private readonly IList values; + private readonly List values; public SparseEdgeMap(int minIndex, int maxIndex) : this(minIndex, maxIndex, DefaultMaxSize ) @@ -65,7 +65,7 @@ namespace Antlr4.Runtime.Dfa } keys = Arrays.CopyOf(map.keys, maxSparseSize); values = new List(maxSparseSize); - Sharpen.Collections.AddAll(values, map.values); + values.AddRange(map.values); } public virtual int[] GetKeys()