Identity

public static T Identity<T>(this T value)
{
    return value;
}
Example:
5.Identity(); // should return 5

Description

Returns the identity of a value

Details

  • Author: McBrover
  • Submitted on: 3/6/2015 10:18:50 AM
  • Language: C#
  • Type: object
  • Views: 2065

Double click on the code to select all.

 

;