Could you explain me what does word "property:" mean?
[property: NotifyParentProperty( true )]
public string Filename
{
get;
set;
}
Document properties, also known as metadata, are details about a file that describe or identify it. They include details such as title, author name, subject, and keywords that identify the document's topic or contents.
Attribute is a quality or object that we attribute to someone or something. For example, the scepter is an attribute of power and statehood. Property is a quality that exists without any attribution. For example, clay has adhesive qualities; i.e, a property of clay is its adhesive quality.
noun, plural prop·er·ties. that which a person owns; the possession or possessions of a particular owner: They lost all their property in the fire.
It means that the Attribute is applied to the property.
In this specific case, it's redundant and could be left away.
This kind of element defines the Attribute Target and is mostly useful when the target can be ambiguous, such as the targets method
and return
. Visual Studio also generates Attributes using the target assembly
in AssemblyInfo.cs
which is a part of many project templates.
More Info and a list of possible Attribute Targets:
Disambiguating Attribute Targets (MSDN)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With