fork download
  1. using static System.Console;
  2.  
  3. public class Program {
  4. public static void Main() {
  5. var teste = new Teste(1, "abc");
  6. WriteLine(teste.Numero);
  7. WriteLine(teste.Texto);
  8. }
  9. }
  10.  
  11. struct Teste {
  12. public int Numero { get; }
  13. public string Texto { get; }
  14. public Teste(int numero, string texto) {
  15. Numero = numero;
  16. Texto = texto;
  17. }
  18. }
  19.  
  20. //https://pt.stackoverflow.com/q/106470/101
Success #stdin #stdout 0.02s 15888KB
stdin
Standard input is empty
stdout
1
abc