LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
StephenB

Indication of item deprecation with the .NET assembly interface

Status: New

A .NET assembly can mark some of its items as deprecated to alert users of those items to not use them for future applications. This is part of the .NET standard. It looks like this:

[Obsolete("This is the message you get!")]

 

In other development environments the developer will see this message when using a deprecated item.

 

This is an example of what it looks like in the Visual Studio editor. The item is underlined and when you hover over, the message is shown:

vseditor.png

 

This is an example from Visual Studio builds:

vs builds.png

 

However LabVIEW does not. If you're developing a LabVIEW application using .NET interfaces... You might use deprecated functionality by accident. To avoid this... LabVIEW users like myself generally have to have intimate knowledge of the assembly or the documentation up on another screen just to make sure they are not using deprecated items.

 

I propose we mark items in a special color to indicate they are deprecated. I chose pink here for no reason. Any color is fine:

lv nodes.png

 

Also, we should indicate the item is deprecated in the class browser in some manner. Again, I just drew some stuff, doesn't have to be exactly this:

lv browse.png

 

Stephen B
1 Comment
kegghead
Member
Also would be good if a warning was placed in the error/warning list dialog.