Skip to content

Instantly share code, notes, and snippets.

@kumpera
Created March 19, 2014 18:22
Show Gist options
  • Save kumpera/9648004 to your computer and use it in GitHub Desktop.
Save kumpera/9648004 to your computer and use it in GitHub Desktop.
using System;
using System.IO;
public enum Foo{
a,b,d
}
class Driver {
static void Main ()
{
Foo[] f = new Foo[] { Foo.a,Foo.b,Foo.d };
Console.WriteLine (f);
object o = f;
int[] i = (int[])o;
Console.WriteLine (i [0]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment