|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
[Conditional("DEBUG")]maybe someone knows if there is a possibility to use the [Conditional("DEBUG")] method sign with a 'Not' like #if !DEBUG ....do somethin #endif [Conditional("DEBUG")] private void myMethod() { } exists somethiong like this??? [Conditional("DEBUG", false)] private void myMethod() { } i'm working with framework 1.1 thanks martin madreza Martin Madreza wrote:
> exists somethiong like this??? No, but you can always start your file with > > [Conditional("DEBUG", false)] > private void myMethod() > { > } #if !DEBUG #define NotDebug #endif and then use [Conditional("NotDebug")]. or you could
[Conditional("RELEASE")] However that's rather unusual..... How do you test it? Show quote "Martin Madreza" <madmakdr***@yahoo.de> wrote in message news:1164188545.342805.224220@e3g2000cwe.googlegroups.com... > Hi, > > maybe someone knows if there is a possibility to use the > [Conditional("DEBUG")] method sign with a 'Not' like > > #if !DEBUG > ...do somethin > #endif > > > [Conditional("DEBUG")] > private void myMethod() > { > } > > exists somethiong like this??? > > [Conditional("DEBUG", false)] > private void myMethod() > { > } > > > i'm working with framework 1.1 > > thanks > > martin madreza > |
|||||||||||||||||||||||