What is an open generic array type []?

When I do int[], string[], T[]- a general array. An array is just an object, like everything else.

So what is the actual open generic type []? I suppose this is just syntactic sugar over something like Array<>, but I could not find anything like it.

Bonus points if you can somehow answer it before John Skeet.

+3
source share
4 answers
+7
source

. .net 1, generics .net 2. , .

Array .

, , . , Java.

+4

, Array; , .NET Framework. ""; System.Array O-O . .

, System.Array IList<T>, . , , IList.

+3

This is not just syntactic sugar, it is the actual output of the System.Array class.

+1
source

Source: https://habr.com/ru/post/1796400/


All Articles