예제 #1
0
    public static void Go()
    {
        GenericType <String> gts = new GenericType <String>("123");
        Int32 n = gts.Converter <Int32>();

        CallingSwap();
        CallingSwapUsingInference();

        Display("Jeff");           // Calls Display(String)
        Display(123);              // Calls Display<T>(T)
        Display <String>("Aidan"); // Calls Display<T>(T)
    }