This has probably been already asked but it's hard to search for.
What is the difference between [Something]
and [SomethingAttribute]
?
Both of the following compile:
[DefaultValue(false)]
public bool Something { get; set; }
[DefaultValueAttribute(false)]
public bool SomethingElse { get; set; }
Are there any differences between these apart from their appearance? What's the general guideline on their use?
[DefaultValue(false)]
. – NeallDefaultValue
orDefaultValueAttributeAttribute
types .. – Sudiesudnor