static class Test_RefOut { internal static void Go() { Dictionary<string, string> dict = null; int x = GetDictByRef(ref dict); Console.WriteLine("result : {0}", dict); } static int GetDictByRef(ref Dictionary<string, string> dict) { //dict = new Dictionary<string, string>(); return 2; } }