Generic C# Tutorial

using System;
using System.ComponentModel;
using System.Text;
        class TypeWithField
        {
            public static string field;
            public static void PrintField()
            {
                Console.WriteLine(field + ": " + typeof(T).Name);
            }
            static void Main()
            {
                TypeWithField.field = "First";
                TypeWithField.PrintField();
            }
        }