Logo

Programming-Idioms

History of Idiom 52 > diff from v32 to v33

Edit summary for version 33 by programming-idioms.org:
[C#] Variable names without underscore, in snippet

Version 32

2019-11-19, 17:58:19

Version 33

2020-04-26, 13:57:15

Idiom #52 Check if map contains value

Determine whether map m contains an entry with value v, for some key.

Illustration

Idiom #52 Check if map contains value

Determine whether map m contains an entry with value v, for some key.

Illustration
Extra Keywords
table dictionary hash
Extra Keywords
table dictionary hash
Imports
using System.Collections.Generic;
Imports
using System.Collections.Generic;
Code
_m.ContainsValue(_v)
Code
m.ContainsValue(v)
Doc URL
https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.dictionary-2.containsvalue?view=netframework-4.8
Doc URL
https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.dictionary-2.containsvalue?view=netframework-4.8