Reputation: 219
I am trying to convert VB6 code to c# and I ran into this code in VB6
#If ccDebug then
...
End If.
Please help me converting this code or doing this any other way.
Thanks
Upvotes: 1
Views: 104
Reputation: 696
It is just a project wide constant, see this site for an example:
You would be better off using
#if DEBUG
#endif
Upvotes: 1
Reputation: 54999
Almost the same if I understand your question correctly.
#if DEBUG
....
#endif
See this MSDN page for details.
Upvotes: 1
Reputation: 11442
Maybe you need to use
#if DEBUG
//do special stuff
#endif
Upvotes: 1