VB.NET equivalent to #define in C++

K

k3

Hi,

Is there something that's an equivalent in VB.NET to the #define macro of
C++? I'd like to use it to reduce some code that causes clutter. Like
#define SAFE_DELETE(p) { if (NULL != p) { delete p; p = NULL; }}.

Thank you!
 
H

Herfried K. Wagner [MVP]

* "k3 said:
Is there something that's an equivalent in VB.NET to the #define macro of
C++? I'd like to use it to reduce some code that causes clutter. Like
#define SAFE_DELETE(p) { if (NULL != p) { delete p; p = NULL; }}.

No, there is no replacement.
 

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