dotnet-core/release-notes/2.1/api-diff/2.0-vs-2.1_System.Collections.Generic.md
2018-06-06 11:43:50 -07:00

20 lines
983 B
Markdown

# System.Collections.Generic
``` diff
namespace System.Collections.Generic {
public class Dictionary<TKey, TValue> : ICollection, ICollection<KeyValuePair<TKey, TValue>>, IDeserializationCallback, IDictionary, IDictionary<TKey, TValue>, IEnumerable, IEnumerable<KeyValuePair<TKey, TValue>>, IReadOnlyCollection<KeyValuePair<TKey, TValue>>, IReadOnlyDictionary<TKey, TValue>, ISerializable {
+ public int EnsureCapacity(int capacity);
+ public void TrimExcess();
+ public void TrimExcess(int capacity);
}
public class HashSet<T> : ICollection<T>, IDeserializationCallback, IEnumerable, IEnumerable<T>, IReadOnlyCollection<T>, ISerializable, ISet<T> {
+ public int EnsureCapacity(int capacity);
}
- public class KeyNotFoundException : SystemException, ISerializable
+ public class KeyNotFoundException : SystemException
- public struct KeyValuePair<TKey, TValue>
+ public readonly struct KeyValuePair<TKey, TValue>
}
```