using System;
namespace Generic
{
class GenericClass<T>
{
public T Getvalue(T input)
{
T obj = input;
return obj;
}
}
public class Test
{
public static void Main()
{
GenericClass<int> objGeneric = new GenericClass<int>();
Console.WriteLine(objGeneric.Getvalue(5));
Console.ReadLine();
}
}
}
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.

Onlymorons onthiswebsitePosted Feb 2, 2015, 8:57 AM
I dont understand why there are moderators, when stuff like this is approved.