ExtensionMethod.NET Home of 880 C#, Visual Basic, F# and Javascript extension methods

Id

Identity function

Source

public static T Id<T>(this T value) 
{
   return value;
}

Example

Console.WriteLine("Hello word".Id());

Author: Anderson Vieira

Submitted on: 9 jun. 2015

Language: C#

Type: T

Views: 4328