Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 17
    On decompilation (Reflector, ILSpy, ..) a constant NEVER EVER is referenced by any one, no matter of same assembly or another assembly, so you cannot analyze the usage of a constant in compiled code at all.
    – springy76
    Commented Aug 19, 2016 at 13:02
  • Could you get around this by making the constant private and creating a public static method on the class that just returns the constant value? I'm sure this is terrible etiquette to ask a question within the comments, but the question may also imply an answer.
    – B H
    Commented May 3 at 15:08