fork download
  1. using System;
  2.  
  3. public static class ClaseEstaticaDemo
  4. {
  5. public void Metodo()
  6. {
  7. // implementación
  8. }
  9. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(5,21): error CS0708: `ClaseEstaticaDemo.Metodo()': cannot declare instance members in a static class
Compilation failed: 1 error(s), 0 warnings
stdout
Standard output is empty