IDictionaryExtensionsToSortedDictionaryTKey, TValue(IDictionaryTKey, TValue, IComparerTKey) Method
Converts an IDictionaryTKey, TValue to
SortedDictionaryTKey, TValue.
Namespace: DevCase.Extensions.IDictionaryExtensionsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static SortedDictionary<TKey, TValue> ToSortedDictionary<TKey, TValue>(
this IDictionary<TKey, TValue> sender,
IComparer<TKey> comparer
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Function ToSortedDictionary(Of TKey, TValue) (
sender As IDictionary(Of TKey, TValue),
comparer As IComparer(Of TKey)
) As SortedDictionary(Of TKey, TValue)
Dim sender As IDictionary(Of TKey, TValue)
Dim comparer As IComparer(Of TKey)
Dim returnValue As SortedDictionary(Of TKey, TValue)
returnValue = sender.ToSortedDictionary(comparer)
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
generic<typename TKey, typename TValue>
static SortedDictionary<TKey, TValue>^ ToSortedDictionary(
IDictionary<TKey, TValue>^ sender,
IComparer<TKey>^ comparer
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member ToSortedDictionary :
sender : IDictionary<'TKey, 'TValue> *
comparer : IComparer<'TKey> -> SortedDictionary<'TKey, 'TValue>
No code example is currently available or this language may not be supported.
- sender IDictionaryTKey, TValue
-
The source IDictionaryTKey, TValue.
- comparer IComparerTKey
-
The IComparerT implementation to use when comparing keys,
or null to use the default ComparerT for the type of the key"/>.
- TKey
- TValue
SortedDictionaryTKey,
TValue
The resulting
SortedDictionaryTKey, TValue.
In Visual Basic and C#, you can call this method as an instance method on any object of type
IDictionaryTKey,
TValue. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).