Conditional Compiler directives....

S

Sam Marrocco

Is there a way to prevent a conditional compiler directive from
"disabling" my #region/End Region statements? If I surround a block of
code that contains #region statements with an #if/#EndIf block, when the
#if is false, all code folding/formatting dissapears, making the code
very unreadable. Any suggestions?

--
==================================================================
Sam J. Marrocco
Sr. Visual Effects Artist/R&D
Travelling Pictures/GTN
Inferno, Flame, Houdini, Maya, All that cool stuff!
"The fact that no one understands you doesn't make you an artist."
==================================================================
 
H

Herfried K. Wagner [MVP]

Hello,

Sam Marrocco said:
Is there a way to prevent a conditional compiler directive from
"disabling" my #region/End Region statements? If I surround a block of
code that contains #region statements with an #if/#EndIf block, when the
#if is false, all code folding/formatting dissapears, making the code
very unreadable. Any suggestions?

I am able to reproduce that in VS .NET 2002 but I do not have a workaround.
I consider this to be a "bug". Even '#If...Then...#End If' blocks do not
show a "+" or "-" to toggle visibility.

Regards,
Herfried K. Wagner
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top