views:

64

answers:

2

Hi. Sorry about the vocabulary question but I can't find this anywhere: how do you call this below?

[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("MyAssembly")]

Is it a statement, a directive, ... ? I want to indicate that you have to insert that line in order to give MyAssembly access to your assembly's internal members, but I'd like to use a more specific term than "line".

Thanks!

+5  A: 

It's a Global Attribute applied at the assembly level.

Darin Dimitrov
Great answer, +1, but I chose Jared's answer because `InternalsVisibleTo` is an attribute, but `[assembly: InternalsVisibleTo(“MyAssembly”)]` is an attribute *specification*. Ah, vocabulary! Thanks for your answer, I'm adding this info to my text :)
Alix
+3  A: 

The C# language spec refers to it as an Attribute Specification (section 17.2).

Attribute specification is the application of a previously defined attribute to a declaration. An attribute is a piece of additional declarative information that is specified for a declaration. Attributes can be specified at global scope (to specify attributes on the containing assembly or module) ...

JaredPar
Thanks, that's exactly what I needed.
Alix