#if !DEBUG

resharper doesn't work with #if

look in ApplicationAssert.cs in the SystemFramework in the Duwamish sample


2 comments
Comment actions Permalink

#if !DEBUG

return 0;

#else

return (new StackTrace(1, true)).GetFrame(0).GetFileLineNumber();

#endif

this gives me a code is unreachable error but it is valid and compiles 100%



"Pieter Jansen van Vuuren" <sp@m_me pieter[at]psh.co.za> wrote in message
news:cedtf5$djt$1@is.intellij.net...

resharper doesn't work with #if

>

look in ApplicationAssert.cs in the SystemFramework in the Duwamish sample

>
>


0

Please sign in to leave a comment.