c# - What is word "property:" in Attribute -


could explain me word "property:" mean?

[property: notifyparentproperty( true )] public string filename {   get;   set; } 

it means attribute applied property.
in specific case, it's redundant , left away.

this kind of element defines attribute target , useful when target can ambiguous, such targets method , return. visual studio generates attributes using target assembly in assemblyinfo.cs part of many project templates.

more info , list of possible attribute targets:
disambiguating attribute targets (msdn)


Comments