Skip to content

Instantly share code, notes, and snippets.

@den-mentiei
Created April 25, 2013 20:24
Show Gist options
  • Save den-mentiei/5462828 to your computer and use it in GitHub Desktop.
Save den-mentiei/5462828 to your computer and use it in GitHub Desktop.
Will output `y is uint`.
using System;
public class Program {
private static void Main(string[] args) {
int[] x = new int[10];
if (x is uint[]) {
Console.WriteLine("x is uint");
}
object y = x;
if (y is uint[]) {
Console.WriteLine("y is uint");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment