views:

1478

answers:

2

Hi,

Is there an ability in VB.NET to deprecate code? I know that in C# there are 'attributes', and tags in java; is there anything similar in VB.NET, other than leaving a 'todo:...?

+3  A: 

Use the [Obsolete] Attribute.

Otávio Décio
+17  A: 

There are attributes in VB.NET too:

http://www.vb-helper.com/howto_net_obsolete_attribute.html

Looks like this (before your function)

< Obsolete("This method is deprecated, use XXXX instead.") > _
Lou Franco
Fantastic, thanks.
brass-kazoo