首页 > 解决方案 > 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?

标签: .net

解决方案


In C#, attributes are not required to have their Attribute suffix of their class name.


推荐阅读