B
Brett Romero
Say I have this setup:
[A.DLL]
public static void SomeMethod()
{
#if DEBUG
....
#endif
}
[B.EXE]
A.Class1.SomeMethod();
In A.DLL's project property build tab, DEBUG constant is turned off
while it is one for B.EXE. This isn't transient however. The code
doesn't execute. A.DLL has to have the DEBUG constant turned on, which
will always run the code. I want the caller to determine if the code
should run or not. Any suggestions?
Thanks,
Brett
[A.DLL]
public static void SomeMethod()
{
#if DEBUG
....
#endif
}
[B.EXE]
A.Class1.SomeMethod();
In A.DLL's project property build tab, DEBUG constant is turned off
while it is one for B.EXE. This isn't transient however. The code
doesn't execute. A.DLL has to have the DEBUG constant turned on, which
will always run the code. I want the caller to determine if the code
should run or not. Any suggestions?
Thanks,
Brett