How do I check if a number is positive or negative in C#?
public static bool IsNegative(T value) where T : struct, IComparable { return value.CompareTo(default(T)) < 0; }