csharp dictionary check if value exists

Code Example - csharp dictionary check if value exists

                
                        var myKey = types.FirstOrDefault(x => x.Value == "one").Key;
                    
                
 

csharp check to see if dictionary key exists

                        
                                bool keyExists = dict.ContainsKey(key);