Is there a way of determining the name of a constant from a given value?
For example, given the following:
public const uint ERR_OK = 0x00000000;
Ho
You won't be able to do this since constants are replaced at compilation time with their literal values.
In other words the compiler takes this:
class Foo { uint someField = ERR_OK; }
and turns it into this:
class Foo { uint someField = 0; }