Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is word "property:" in Attribute

Could you explain me what does word "property:" mean?

[property: NotifyParentProperty( true )]
public string Filename
{
  get;
  set;
}
like image 908
Yuriy Avatar asked Mar 27 '13 12:03

Yuriy


People also ask

What are word properties?

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.

What is attributes and property?

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.

What word class is property?

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.


1 Answers

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)

like image 132
Botz3000 Avatar answered Sep 25 '22 04:09

Botz3000