Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the thing in square brackets that comes before a C# class declaration called? [closed]

Tags:

c#

What is the [something] in

[something] public class c1 {  } 

called in C#? What does it do?

like image 437
Bit Hunter Avatar asked Feb 27 '12 20:02

Bit Hunter


People also ask

What are these brackets [] called?

Square brackets [] Square brackets, often just called brackets in American English, are typically only used with quotations in formal writing.

What does square brackets mean in C?

These brackets define important constructs in a programming language. For example, in C and languages influenced by C, "{}" denote a code block while "[]" refers to an array subscript.

What do [] brackets indicate?

Brackets are used to insert explanations, corrections, clarifications, or comments into quoted material. Brackets are always used in pairs; you must have both an opening and a closing bracket.

Which are the 4 types of brackets?

Specific forms of the mark include parentheses (also called "rounded brackets"), square brackets, curly brackets (also called 'braces'), and angle brackets (also called 'chevrons'), as well as various less common pairs of symbols.


1 Answers

That's an Attribute.

like image 141
Teoman Soygul Avatar answered Sep 24 '22 00:09

Teoman Soygul