Understanding structures in the AssemblyInfo.cs file

1

Taking a look at the AssemblyInfo.cs file of a C # project I came across some structures that I am not recognizing. These are the lines:

[assembly: AssemblyTitle("")]
[assembly: AssemblyDescription ( "" )]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany ( "" )]
[assembly: AssemblyProduct("")]
[assembly: AssemblyCopyright("Copyright ©  2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

In other languages I have experience I would say are dicionários . But in C # dicionários are not so. What kind of structures are these? Any kind of list?

    
asked by anonymous 02.10.2016 / 00:08

1 answer

1

In fact they are called attributes . They are basically annotations that can be used in different contexts. In this case it creates metadata to inform and configure how assembly will behave.

It has nothing to do with dictionaries, unless some language uses non-standard terminology than everyone else uses.

More about the attributes can be read in another question .

You can even create a custom attribute .

In this case posted only AssemblyCulture has more than informative utility.

    
02.10.2016 / 00:55