I have two integers, int1 and int2 . I want to check which one is higher. How can I do this best? Is there a C # .NET function for this, or do I need to write it myself?
Ofcource I can do something similar to this:
if (int1 < int2) return int1; else return int2;
But I was wondering if there is a more elegant way to do this?
yours, Bernhard
source share