Dictionary<string, int> test = new Dictionary<string, int>(); test.Add("dave", 12); test.Add("john", 14); int v; test.TryGetValue("dave", out int v) { Console.WriteLine(v); } This simple C# code gives "Best Overload Method Match has some Invalid Arguments" error. Can you please tell me the source of the error? Thanks.
out int valueis C# 7 onlyifstatement aroundtest.TryGetValue?