using System;
using System.Collections.Generic;
public class T
{
}
public class Program
public static void Main()
var dict = new Dictionary<int, T>();
var t = new T();
dict.Add(1, t);
if(dict.TryGetValue(1, out t))
Console.WriteLine("Hello World");
T t1;
if(dict.TryGetValue(1, out t1))