在 VB.NET 中,我可以将函数标记为已弃用吗?
VB.NET 是否有能力弃用代码? 我知道在C#中有“属性”,在java中有标签; 除了留下 'todo:
... 之外,VB.NET 中还有类似的东西吗?
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:
...?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
VB.NET 中也有属性:
看起来像这样(在您的函数之前)
并且从 VB.NET 10(.NET 4 及更高版本)开始,我们< a href="https://msdn.microsoft.com/en-us/library/ff637436.aspx" rel="noreferrer">不再需要下划线。
There are attributes in VB.NET too:
Looks like this (before your function)
And since VB.NET 10 (.NET 4 and later) we no longer need the underscore.
使用[已过时] 属性。
Use the [Obsolete] Attribute.