fork download
  1. public static string GetTypeOfIntegerWithSwitchStatement(object arg)
  2. {
  3. if (arg == null)
  4. {
  5. return "ERORR";
  6. }
  7.  
  8. switch (arg.GetType())
  9. {
  10. case sbyte:
  11. Console.WriteLine();
  12. break;
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(1,14): error CS1525: Unexpected symbol `string', expecting `class', `delegate', `enum', `interface', `partial', `ref', or `struct'
Compilation failed: 1 error(s), 0 warnings
stdout
Standard output is empty