using System;
public class Program
{
public static void Main()
var thing = new Thing<int>();
var type = thing.GetType();
if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Thing<>))
Console.WriteLine("Got a thing: " + type.GetGenericArguments()[0]);
}
public class Thing<T>