Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEirik Tsarpalis <eirik.tsarpalis@gmail.com>2022-09-29 17:05:52 +0300
committerGitHub <noreply@github.com>2022-09-29 17:05:52 +0300
commited9afa880165ac1176f9eb8b2ab3276215ba6b8e (patch)
tree394ff116f726ac91f7199c390dd9fb4554048a67 /src
parent60986693ea08b865dad65ff6896d7c20f8a04b82 (diff)
Make KeysCollection.Contains methods public. (#76319)
Diffstat (limited to 'src')
-rw-r--r--src/libraries/System.Collections/ref/System.Collections.cs4
-rw-r--r--src/libraries/System.Collections/src/System/Collections/Generic/SortedDictionary.cs2
-rw-r--r--src/libraries/System.Private.CoreLib/src/System/Collections/Generic/Dictionary.cs2
-rw-r--r--src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/ReadOnlyDictionary.cs2
-rw-r--r--src/libraries/System.Runtime/ref/System.Runtime.cs2
5 files changed, 6 insertions, 6 deletions
diff --git a/src/libraries/System.Collections/ref/System.Collections.cs b/src/libraries/System.Collections/ref/System.Collections.cs
index d841eddec8b..56040f18204 100644
--- a/src/libraries/System.Collections/ref/System.Collections.cs
+++ b/src/libraries/System.Collections/ref/System.Collections.cs
@@ -209,7 +209,7 @@ namespace System.Collections.Generic
public System.Collections.Generic.SortedDictionary<TKey, TValue>.KeyCollection.Enumerator GetEnumerator() { throw null; }
void System.Collections.Generic.ICollection<TKey>.Add(TKey item) { }
void System.Collections.Generic.ICollection<TKey>.Clear() { }
- bool System.Collections.Generic.ICollection<TKey>.Contains(TKey item) { throw null; }
+ public bool Contains(TKey item) { throw null; }
bool System.Collections.Generic.ICollection<TKey>.Remove(TKey item) { throw null; }
System.Collections.Generic.IEnumerator<TKey> System.Collections.Generic.IEnumerable<TKey>.GetEnumerator() { throw null; }
void System.Collections.ICollection.CopyTo(System.Array array, int index) { }
@@ -500,7 +500,7 @@ namespace System.Collections.Generic
public System.Collections.Generic.Dictionary<TKey, TValue>.KeyCollection.Enumerator GetEnumerator() { throw null; }
void System.Collections.Generic.ICollection<TKey>.Add(TKey item) { }
void System.Collections.Generic.ICollection<TKey>.Clear() { }
- bool System.Collections.Generic.ICollection<TKey>.Contains(TKey item) { throw null; }
+ public bool Contains(TKey item) { throw null; }
bool System.Collections.Generic.ICollection<TKey>.Remove(TKey item) { throw null; }
System.Collections.Generic.IEnumerator<TKey> System.Collections.Generic.IEnumerable<TKey>.GetEnumerator() { throw null; }
void System.Collections.ICollection.CopyTo(System.Array array, int index) { }
diff --git a/src/libraries/System.Collections/src/System/Collections/Generic/SortedDictionary.cs b/src/libraries/System.Collections/src/System/Collections/Generic/SortedDictionary.cs
index 8925d080f85..ab700e3a88e 100644
--- a/src/libraries/System.Collections/src/System/Collections/Generic/SortedDictionary.cs
+++ b/src/libraries/System.Collections/src/System/Collections/Generic/SortedDictionary.cs
@@ -637,7 +637,7 @@ namespace System.Collections.Generic
throw new NotSupportedException(SR.NotSupported_KeyCollectionSet);
}
- bool ICollection<TKey>.Contains(TKey item)
+ public bool Contains(TKey item)
{
return _dictionary.ContainsKey(item);
}
diff --git a/src/libraries/System.Private.CoreLib/src/System/Collections/Generic/Dictionary.cs b/src/libraries/System.Private.CoreLib/src/System/Collections/Generic/Dictionary.cs
index 88e63dde0aa..870acdfbee6 100644
--- a/src/libraries/System.Private.CoreLib/src/System/Collections/Generic/Dictionary.cs
+++ b/src/libraries/System.Private.CoreLib/src/System/Collections/Generic/Dictionary.cs
@@ -1504,7 +1504,7 @@ namespace System.Collections.Generic
void ICollection<TKey>.Clear() =>
ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_KeyCollectionSet);
- bool ICollection<TKey>.Contains(TKey item) =>
+ public bool Contains(TKey item) =>
_dictionary.ContainsKey(item);
bool ICollection<TKey>.Remove(TKey item)
diff --git a/src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/ReadOnlyDictionary.cs b/src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/ReadOnlyDictionary.cs
index b3eff597377..a13af07cd86 100644
--- a/src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/ReadOnlyDictionary.cs
+++ b/src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/ReadOnlyDictionary.cs
@@ -264,7 +264,7 @@ namespace System.Collections.ObjectModel
throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection);
}
- bool ICollection<TKey>.Contains(TKey item)
+ public bool Contains(TKey item)
{
return _collection.Contains(item);
}
diff --git a/src/libraries/System.Runtime/ref/System.Runtime.cs b/src/libraries/System.Runtime/ref/System.Runtime.cs
index 3137a78af51..8ec969852d1 100644
--- a/src/libraries/System.Runtime/ref/System.Runtime.cs
+++ b/src/libraries/System.Runtime/ref/System.Runtime.cs
@@ -7608,7 +7608,7 @@ namespace System.Collections.ObjectModel
public System.Collections.Generic.IEnumerator<TKey> GetEnumerator() { throw null; }
void System.Collections.Generic.ICollection<TKey>.Add(TKey item) { }
void System.Collections.Generic.ICollection<TKey>.Clear() { }
- bool System.Collections.Generic.ICollection<TKey>.Contains(TKey item) { throw null; }
+ public bool Contains(TKey item) { throw null; }
bool System.Collections.Generic.ICollection<TKey>.Remove(TKey item) { throw null; }
void System.Collections.ICollection.CopyTo(System.Array array, int index) { }
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; }