G
Guest
Is it possible to write an attribute that changes the visibility of a class
(public/private) etc based on some pre-compiler define symbol?
We're writing some classes which will be called by an external (bespoke)
test harness, so we want then to be public in the assembly when we're
testing, and private in the class the rest of the time.
For example
[DefinePublic(TEST_SYMBOL_DEFINED)]
class ClassToBePublicInTestModeOnly
{
};
Does anyone have any ideas?
Thanks
Colin
(public/private) etc based on some pre-compiler define symbol?
We're writing some classes which will be called by an external (bespoke)
test harness, so we want then to be public in the assembly when we're
testing, and private in the class the rest of the time.
For example
[DefinePublic(TEST_SYMBOL_DEFINED)]
class ClassToBePublicInTestModeOnly
{
};
Does anyone have any ideas?
Thanks
Colin