
C# tip use Dictionary TryGetValue
Here is another C# tip. Most of the time when you are trying to get a value from dictionary you would try to check if the key exist or not something like. if(dictionary.ContainsKey(key)) { var value – dictionary[key]; //do some…

