I'm a fan of these guys... (Though I feel like I might catch some flack for the first one.)
public static bool IsNullOrEmpty<T>(this ICollection<T> collection)
{
return collection == null || collection.Count == 0;
}
public static float Clamp(this float value, float low, float hi)
{
System.Diagnostics.Debug.Assert(low < hi);
value = (value < low) ? low : value;
return (value > hi) ? hi : value;
}
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.