0
It is difficult to understand the fields of the class. Where can I find information so that I understand why such a syntax?
T [ ] items; for example?
2 Respuestas
+ 1
Can you explain yourself a bit more ?
string MyString = "Hello"; is a field
string[] MyArray = new string[3]; is a array of three strings
The type T can be any type, that makes it flexible and complex.
It great if used correctly but difficult to understand.
It is called generic.
So in your array "items" your can store strings and also integers.
This is defined when the array is created
https://www.dotnetperls.com/generic
0
Thank you, I really helped your answer☺️