For example: class MyList<T>
What are these <> called? I call them diamond braces but I can't find any reference to that terminology. And I would assume they have a name other than "less than and greater than symbols" since they convey a different meaning. They must have a name. These have names:
( ... ) - parenthesis
[ ... ] - brackets/braces
{ ... } - curly brackets/curly braces
Asked
Active
Viewed 179 times
0

Aamir
- 443
- 3
- 16
-
3https://en.wiktionary.org/wiki/angle_bracket – Tim Lee Feb 26 '18 at 04:53
-
1I'm voting to close this question as off-topic because it belongs on a different stack exchange website: https://english.stackexchange.com/ – Zohar Peled Feb 26 '18 at 05:02
-
1[What is the meaning of the different types of brackets/parentheses/braces used in C#?](https://stackoverflow.com/questions/38748167/what-is-the-meaning-of-the-different-types-of-brackets-parentheses-braces-used-i). It's closed. – Jimi Feb 26 '18 at 05:06
1 Answers
0
A generic class is defined with the following format:
class name { /* ... */ }
The type parameter section, delimited by angle brackets (<>), follows the class name. It specifies the type parameter (also called type variable) T. This pair of angle brackets, <>, is informally called the diamond.

Samiksha Mehta
- 16
- 2