VB.NET equivalent to #define in C++

  • Thread starter Thread starter k3
  • Start date Start date
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!
 
* "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.
 
Back
Top