CSharp examples for System:Int32
Check if a given number is greater then and less then or equal to a range. x > y && x <= z
using System.Globalization; using System.Collections.Generic; using System.Collections; using System;//from www . j av a 2 s. c o m public class Main{ /// <summary> /// Check if a given number is greater then and less then or equal to a range. /// x > y && x <= z /// </summary> /// <param name="number"></param> /// <param name="rangeStart"></param> /// <param name="rangeStop"></param> /// <returns></returns> public static bool IsInExclusiveLowerRange (int number, int rangeStart, int rangeStop) { return number > rangeStart && number <= rangeStop; } }