fork download
  1. using static System.Console;
  2.  
  3. public class Program {
  4. public static void Main(){
  5. var instancia = Instancia.Factory();
  6. WriteLine(instancia.GetType());
  7. }
  8. }
  9.  
  10. public class Instancia {
  11. private Instancia() {}
  12. public static Instancia Factory() {
  13. return new Instancia();
  14. }
  15. }
  16.  
  17. //https://pt.stackoverflow.com/q/176764/101
Success #stdin #stdout 0.02s 15900KB
stdin
Standard input is empty
stdout
Instancia