Skip to content

Commit 7737fb9

Browse files
committed
update dictionary extenstion
1 parent 37e130d commit 7737fb9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Microsoft.OpenApi/Extensions/DictionaryExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public static class DictionaryExtensions
1313
/// Returns a new dictionary with entries sorted by key using the default comparer.
1414
/// </summary>
1515
public static SortedDictionary<TKey, TValue> Sort<TKey, TValue>(
16-
this IDictionary<TKey, TValue> source)
16+
this Dictionary<TKey, TValue> source)
1717
where TKey : notnull
1818
{
1919
Utils.CheckArgumentNull(source);
@@ -25,7 +25,7 @@ public static SortedDictionary<TKey, TValue> Sort<TKey, TValue>(
2525
/// Returns a new dictionary with entries sorted by key using a custom comparer.
2626
/// </summary>
2727
public static SortedDictionary<TKey, TValue> Sort<TKey, TValue>(
28-
this IDictionary<TKey, TValue> source,
28+
this Dictionary<TKey, TValue> source,
2929
IComparer<TKey> comparer)
3030
where TKey : notnull
3131
{

test/Microsoft.OpenApi.Tests/PublicApi/PublicApi.approved.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,9 @@ namespace Microsoft.OpenApi.Extensions
144144
{
145145
public static class DictionaryExtensions
146146
{
147-
public static System.Collections.Generic.SortedDictionary<TKey, TValue> Sort<TKey, TValue>(this System.Collections.Generic.IDictionary<TKey, TValue> source)
147+
public static System.Collections.Generic.SortedDictionary<TKey, TValue> Sort<TKey, TValue>(this System.Collections.Generic.Dictionary<TKey, TValue> source)
148148
where TKey : notnull { }
149-
public static System.Collections.Generic.SortedDictionary<TKey, TValue> Sort<TKey, TValue>(this System.Collections.Generic.IDictionary<TKey, TValue> source, System.Collections.Generic.IComparer<TKey> comparer)
149+
public static System.Collections.Generic.SortedDictionary<TKey, TValue> Sort<TKey, TValue>(this System.Collections.Generic.Dictionary<TKey, TValue> source, System.Collections.Generic.IComparer<TKey> comparer)
150150
where TKey : notnull { }
151151
}
152152
public static class EnumExtensions

0 commit comments

Comments
 (0)