|
6 | 6 |
|
7 | 7 | namespace System.Collections |
8 | 8 | { |
| 9 | +#if !BUILDING_CORELIB_REFERENCE |
9 | 10 | public sealed partial class BitArray : System.Collections.ICollection, System.Collections.IEnumerable, System.ICloneable |
10 | 11 | { |
11 | 12 | public BitArray(bool[] values) { } |
@@ -38,16 +39,20 @@ public static partial class StructuralComparisons |
38 | 39 | public static System.Collections.IComparer StructuralComparer { get { throw null; } } |
39 | 40 | public static System.Collections.IEqualityComparer StructuralEqualityComparer { get { throw null; } } |
40 | 41 | } |
| 42 | +#endif |
41 | 43 | } |
| 44 | + |
42 | 45 | namespace System.Collections.Generic |
43 | 46 | { |
| 47 | +#if !BUILDING_CORELIB_REFERENCE |
44 | 48 | public static partial class CollectionExtensions |
45 | 49 | { |
46 | 50 | public static TValue? GetValueOrDefault<TKey, TValue>(this System.Collections.Generic.IReadOnlyDictionary<TKey, TValue> dictionary, TKey key) { throw null; } |
47 | 51 | public static TValue GetValueOrDefault<TKey, TValue>(this System.Collections.Generic.IReadOnlyDictionary<TKey, TValue> dictionary, TKey key, TValue defaultValue) { throw null; } |
48 | 52 | public static bool Remove<TKey, TValue>(this System.Collections.Generic.IDictionary<TKey, TValue> dictionary, TKey key, [System.Diagnostics.CodeAnalysis.MaybeNullWhenAttribute(false)] out TValue value) { throw null; } |
49 | 53 | public static bool TryAdd<TKey, TValue>(this System.Collections.Generic.IDictionary<TKey, TValue> dictionary, TKey key, TValue value) { throw null; } |
50 | 54 | } |
| 55 | +#endif |
51 | 56 | public abstract partial class Comparer<T> : System.Collections.Generic.IComparer<T>, System.Collections.IComparer |
52 | 57 | { |
53 | 58 | protected Comparer() { } |
@@ -240,6 +245,7 @@ public void Dispose() { } |
240 | 245 | void System.Collections.IEnumerator.Reset() { } |
241 | 246 | } |
242 | 247 | } |
| 248 | +#if !BUILDING_CORELIB_REFERENCE |
243 | 249 | public sealed partial class LinkedListNode<T> |
244 | 250 | { |
245 | 251 | public LinkedListNode(T value) { } |
@@ -298,6 +304,7 @@ void System.Runtime.Serialization.IDeserializationCallback.OnDeserialization(obj |
298 | 304 | void System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } |
299 | 305 | } |
300 | 306 | } |
| 307 | +#endif |
301 | 308 | public partial class List<T> : System.Collections.Generic.ICollection<T>, System.Collections.Generic.IEnumerable<T>, System.Collections.Generic.IList<T>, System.Collections.Generic.IReadOnlyCollection<T>, System.Collections.Generic.IReadOnlyList<T>, System.Collections.ICollection, System.Collections.IEnumerable, System.Collections.IList |
302 | 309 | { |
303 | 310 | public List() { } |
@@ -379,7 +386,7 @@ public void Dispose() { } |
379 | 386 | void System.Collections.IEnumerator.Reset() { } |
380 | 387 | } |
381 | 388 | } |
382 | | - |
| 389 | +#if !BUILDING_CORELIB_REFERENCE |
383 | 390 | public partial class PriorityQueue<TElement, TPriority> |
384 | 391 | { |
385 | 392 | public PriorityQueue() { } |
@@ -423,7 +430,7 @@ void System.Collections.IEnumerator.Reset() { } |
423 | 430 | } |
424 | 431 | } |
425 | 432 | } |
426 | | - |
| 433 | +#endif |
427 | 434 | public partial class Queue<T> : System.Collections.Generic.IEnumerable<T>, System.Collections.Generic.IReadOnlyCollection<T>, System.Collections.ICollection, System.Collections.IEnumerable |
428 | 435 | { |
429 | 436 | public Queue() { } |
@@ -466,6 +473,7 @@ private ReferenceEqualityComparer() { } |
466 | 473 | public new bool Equals(object? x, object? y) { throw null; } |
467 | 474 | public int GetHashCode(object? obj) { throw null; } |
468 | 475 | } |
| 476 | +#if !BUILDING_CORELIB_REFERENCE |
469 | 477 | public partial class SortedDictionary<TKey, TValue> : System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey, TValue>>, System.Collections.Generic.IDictionary<TKey, TValue>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey, TValue>>, System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<TKey, TValue>>, System.Collections.Generic.IReadOnlyDictionary<TKey, TValue>, System.Collections.ICollection, System.Collections.IDictionary, System.Collections.IEnumerable where TKey : notnull |
470 | 478 | { |
471 | 479 | public SortedDictionary() { } |
@@ -718,4 +726,5 @@ public void Dispose() { } |
718 | 726 | void System.Collections.IEnumerator.Reset() { } |
719 | 727 | } |
720 | 728 | } |
| 729 | +#endif |
721 | 730 | } |
0 commit comments