CSharp examples for System:Byte
Returns the smaller of two 8-bit unsigned integers.
// Licensed under MIT License (MIT) (https://github.com/zzzprojects/Z.ExtensionMethods) using System;//ww w .j a v a 2 s .c o m public class Main{ /// <summary> /// Returns the smaller of two 8-bit unsigned integers. /// </summary> /// <param name="val1">The first of two 8-bit unsigned integers to compare.</param> /// <param name="val2">The second of two 8-bit unsigned integers to compare.</param> /// <returns>Parameter or , whichever is smaller.</returns> public static Byte Min(this Byte val1, Byte val2) { return Math.Min(val1, val2); } }