public static class ExtInt {
public static object choose (this int i, Case0 zero, Case1 one) {
default: throw new Exception();
public Case0(object value) { this.value = value; }
public Case1(object value) { this.value = value; }
public static void Main()
Random rand = new Random();
Console.WriteLine(rand.Next(2).choose(