LANGUAGE
Generic method declaration
Declares a method with its own type parameter. The result retains the input type.
Formal Syntax & Structure
csharp syntaxcsharp
T Echo<T>(T value)Working Example
Example Snippetcsharp
System.Console.WriteLine(Echo(3));static T Echo<T>(T value) => value;