This project has moved and is read-only. For the latest updates, please go here.

System.IComparable Extension Methods

InRange<T>(T min, T max)

Summary: Returns a boolean indicating whether the Source value is within the specified Min and Max range (inclusive).
C# Example:
var i = 3;
var result = i.InRange(1, 5); // returns true

Last edited Mar 16, 2013 at 1:15 PM by crpietschmann, version 1


No comments yet.