I think this is fairly language-independent, but if I'm wrong, then go for C# (or C or C++).
With "simple" magic values I mean things like this:
if (Value > 0)
or
while (Value < 0)
or
while (MyQueue > 0)
While writing this (pseudo-code above) it kinda struck me that it really only applies to something being compared to 0.
Anyway, what's the best way to handle these sort of magic values (considering readability, amount of keystrokes/code to create and name)?
It feels like extreme overkill having an entire (static) class (or enum, in C#) dedicated to this.