Click or drag to resize

MultiValueDictionary<TKey, TValue>.GetValues Method

Gets the values for the key specified. This method is useful if you want to avoid an exception for key value retrieval and you can't use TryGetValue (e.g. in lambdas)

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.7.0.0 (5.7.0)
Syntax
public HashSet<TValue> GetValues(
	TKey key,
	bool returnEmptySet
)

Parameters

key
Type: TKey
The key.
returnEmptySet
Type: System.Boolean
if set to true and the key isn't found, an empty hashset is returned, otherwise, if the key isn't found, null is returned

Return Value

Type: HashSet<TValue>
This method will return null (or an empty set if returnEmptySet is true) if the key wasn't found, or the values if key was found.
See Also