When I do int[], string[], T[]- a general array. An array is just an object, like everything else.
int[]
string[]
T[]
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.
Array<>
Bonus points if you can somehow answer it before John Skeet.
This is just System.Array; it is not common. See here for a brief discussion: http://blogs.msdn.com/b/ericlippert/archive/2007/10/17/covariance-and-contravariance-in-c-part-two-array-covariance.aspx
. .net 1, generics .net 2. , .
Array .
Array
, , . , Java.
, Array; , .NET Framework. ""; System.Array O-O . .
System.Array
, System.Array IList<T>, . , , IList.
IList<T>
This is not just syntactic sugar, it is the actual output of the System.Array class.
Source: https://habr.com/ru/post/1796400/More articles:Return one of the two columns in the view - whichever is not null - sqlCreate a simple interactive FizzBuzz module for Orchard CMS? - c #avfoundation: appendPixelBuffer withPresentationTime, adapter not ready - iphoneHelp needed for a PHP function: brightness (); making RGB colors darker / brighter - phphttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1796399/alternatives-to-relativelayout&usg=ALkJrhhuk3APgj227Ouymh6wmjJn2Jz8XAIs it possible to create an XmlReader from an output SqlParameter of type SqlDbType.Xml? - c #Hibernate: Partial lazy initialization? - javaJava - ArrayList как параметр...? - javaimaplib.error: FETCH command is illegal in AUTH state - pythonExcel adds extra quotation marks to CSV export - c #All Articles