public static double GetDouble(this Outer.ErrorCode code) { return((double)(int)code); }
public static void Main() { Outer.ErrorCode code = Outer.ErrorCode.Error1; Console.WriteLine(code.GetDouble()); }