Or operator in Conditional attribute in C#

Solution 1:

You can use multiple comma separated conditional attributes like

[Conditional("DEBUG"), Conditional("BAR")]

and it will be exactly your desired behaviour - they will be logically ORed together.

See MSDN for reference.