c# max two values

C#
<T> max = Math.Max(<T>,<T>);
Source

Also in C#: