Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>While the value returned by <a href="http://msdn.microsoft.com/en-us/library/system.type.fullname.aspx" rel="nofollow noreferrer"><code>Type.FullName</code></a> and the C# type identifier sometimes happen to be the same, this is not guaranteed. Keep in mind that <code>Type.FullName</code> returns the same value regardless of what CLI language it is called from, be it C#, VB.NET, Oxygene or anything else.</p> <p>For multidimensional and jagged arrays, C# syntax lists the indices in the order they are written later on, while reflection syntax returns something that matches the logical structure of the array. And a (C#) <code>string[,][,,][,,,]</code> is, after all, a value of type <code>string</code>, thereof a 4-dimensional array (i.e. <code>string[,,,]</code>), thereof a 3-dimensional array (i.e. <code>string[,,,][,,]</code>) and thereof a 2-dimensional array (i.e. <code>string[,,,][,,][,]</code>).</p> <p>Rather than relying on the reflection syntax name returned by <code>FullName</code>, you might want to examine the properties of the <code>Type</code> class when analyzing types. Information such as the <a href="http://msdn.microsoft.com/en-us/library/system.type.getarrayrank.aspx" rel="nofollow noreferrer">number of dimensions</a> or the <a href="http://msdn.microsoft.com/en-us/library/system.type.getgenericarguments.aspx" rel="nofollow noreferrer">generic arguments</a> can be retrieved from there.</p> <p>When constructing types, you can also use methods such as <a href="http://msdn.microsoft.com/en-us/library/w0ykk2sw.aspx" rel="nofollow noreferrer"><code>MakeArrayType</code></a> or <a href="http://msdn.microsoft.com/en-us/library/system.type.makegenerictype.aspx" rel="nofollow noreferrer"><code>MakeGenericType</code></a> to create complex types at runtime without constructing a string that contains the ingredients for the new types.</p> <p><em>Some of the contents of this answer was pointed out by <a href="https://stackoverflow.com/users/23354/marc-gravell">Marc Gravell</a> - thank you!</em></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload