fork download
  1. using static System.Console;
  2.  
  3. public class Program {
  4. public static void Main() {
  5. WriteLine(PayCode.NotPaid.GetTypeCode());
  6. WriteLine((int)(PayCode.NotPaid));
  7. WriteLine((char)(PayCode.NotPaid));
  8. Teste('A');
  9. int x = 'B';
  10. }
  11. public static void Teste(int x) {}
  12. }
  13.  
  14. public enum PayCode {
  15. NotPaid = 'N',
  16. Paid = 'P'
  17. }
  18.  
  19. //https://pt.stackoverflow.com/q/457611/101
Success #stdin #stdout 0.03s 16496KB
stdin
Standard input is empty
stdout
Int32
78
N