Click or drag to resize

MultiValueDictionaryTKey, TValueGetValues 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.6.0.0 (5.6.19.0117)
Syntax
public HashSet<TValue> GetValues(
	TKey key,
	bool returnEmptySet
)

Parameters

key
Type: TKey
The key.
returnEmptySet
Type: SystemBoolean
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: HashSetTValue
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