Hi buddies,
I had a thought on using the generic method in c# as like we do in c++.
Normally a method looks like this:
public static (void/int/string) methodname((datatype) partameter)
{
return ...;
}
I had a thought whether can we implement the generics to this method like this:
public static <T> methodname(<T> partameter)
{
return ...;
}
Using as a generic to define the datatype.
Can anyone pls suggest whether the above declaration is correct and can be used in c#?
Thanks in advance.