.net - What is the difference between [Conditional("DEBUG")] and [ConditionalAttribute("DEBUG")]?
问题描述
What is the difference between [Conditional("DEBUG")] and [ConditionalAttribute("DEBUG")]. Are both same or technically any difference?
解决方案
In C#, attributes are not required to have their Attribute
suffix of their class name.
推荐阅读
- c# - 第三视图的 WPF Prism 导航
- python - 如何从POST请求中的对象获取ID
- python - 如何解决以下 python 键错误
- java - 有界类型参数:覆盖时无法访问子类型方法
- java - 使用 SaxonEE 和 Python 使用 XSLT 转换 JSON
- html - 悬停时显示背景图像的动画圆圈
- python - 从具有特定条件的行下的行创建数据框
- nginx - 如何转换 HEX 字符以了解攻击者想要做什么
- python - TypeError: module() 最多接受 2 个参数(给定 3 个)
- xml - 如何将具有不同属性模式的 XML 转换为 scala 中的数据框