shanthiram
shanthiram

Reputation: 219

C# equivalent of ccDebug in VB6

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

Answers (4)

Longball27
Longball27

Reputation: 696

It is just a project wide constant, see this site for an example:

Example

You would be better off using

    #if DEBUG

    #endif

Upvotes: 1

Hans Olsson
Hans Olsson

Reputation: 54999

Almost the same if I understand your question correctly.

#if DEBUG
     ....
#endif

See this MSDN page for details.

Upvotes: 1

Matthew Dresser
Matthew Dresser

Reputation: 11442

Maybe you need to use

#if DEBUG
        //do special stuff 
#endif

Upvotes: 1

Jamiec
Jamiec

Reputation: 136074

if(ccDebug){
}

is the equivalent C# code.

Upvotes: 1

Related Questions