Generic C# Tutorial

using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Reflection;
    class GenericMethodReflection
    {
        public static void PrintTypeParameter()
        {
            Console.WriteLine (typeof(T));
        }
        static void Main()
        {
            Type type = typeof(GenericMethodReflection);
            MethodInfo definition = type.GetMethod("PrintTypeParameter");        
            MethodInfo constructed;
            constructed = definition.MakeGenericMethod(typeof(string));       
            constructed.Invoke(null, null);
        }
    }