LookupExtensionsToReadOnlyLookupTKey, TValue(IReadOnlyDictionaryTKey, TValue) Method
Namespace: Jodosoft.CollectionsAssembly: Jodosoft.Collections (in Jodosoft.Collections.dll) Version: 2.0
public static IReadOnlyLookup<TKey, TValue> ToReadOnlyLookup<TKey, TValue>(
this IReadOnlyDictionary<TKey, TValue> dictionary
)
<ExtensionAttribute>
Public Shared Function ToReadOnlyLookup(Of TKey, TValue) (
dictionary As IReadOnlyDictionary(Of TKey, TValue)
) As IReadOnlyLookup(Of TKey, TValue)
public:
[ExtensionAttribute]
generic<typename TKey, typename TValue>
static IReadOnlyLookup<TKey, TValue>^ ToReadOnlyLookup(
IReadOnlyDictionary<TKey, TValue>^ dictionary
)
[<ExtensionAttribute>]
static member ToReadOnlyLookup :
dictionary : IReadOnlyDictionary<'TKey, 'TValue> -> IReadOnlyLookup<'TKey, 'TValue>
- dictionary IReadOnlyDictionaryTKey, TValue
-
- TKey
- TValue
IReadOnlyLookupTKey,
TValueIn Visual Basic and C#, you can call this method as an instance method on any object of type
IReadOnlyDictionaryTKey,
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).