A prototypical generic method

image_pdfimage_print


   



using System;

public class Starter{
    public static void Main(){
       MethodA<int>(20);
    }
    public static void MethodA<T>(T param) {
       Console.WriteLine(param.GetType().ToString());
    }

}

 

           
          


This entry was posted in Generics. Bookmark the permalink.