You could use Enumerable.Max:

new [] { 1, 2, 3 }.Max();