Language Basics C# Book

Generic method is a method with generic type.

using System;
class Test
{
static void print(T t)
{
Console.WriteLine(t);
}
static void Main()
{
print(3);
print("rntsoft.com");
}
}
The output:
3
rntsoft.com