Skip to content

Instantly share code, notes, and snippets.

@VladimirReshetnikov
Created January 15, 2014 19:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VladimirReshetnikov/8443115 to your computer and use it in GitHub Desktop.
Save VladimirReshetnikov/8443115 to your computer and use it in GitHub Desktop.
using System;
class Program
{
static void Main()
{
Array a = Array.CreateInstance(typeof(int), new[]{1}, new[]{1});
Console.WriteLine(a is int[]); // False
Console.WriteLine(a.GetType()); // System.Int32[*]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment