how to check if a value is in a dictionary C# code example
Example: if in dictionary c#
if (dict.ContainsKey(key)) { ... }
//or
dict.TryGetValue(key, out value);
if (dict.ContainsKey(key)) { ... }
//or
dict.TryGetValue(key, out value);