I have a class in my project which holds global configuration, as follows:

```
public class Config {
    public const bool LOGGING_ENABLED = false;
}

```

I want to then be able to use that member to write a preprocessor directive, like the following:

```
#if LOGGING_ENABLED
    [Logging]
    public class MyClass: ContextBoundObject
#else
    public class MyClass
#endif
    {
        ...
    }

```

But clearly, `LOGGING_ENABLED` will come as undefined since it is not actually referencing Config.LOGGING\_ENABLED. Is there any way to reference constant members in another class? I don't want to have to put `#define LOGGING_ENABLED` at the top of every class file, that defeats the whole purpose of this.