fork download
  1. using static System.Console;
  2. using System.Linq;
  3.  
  4. public class Program {
  5. public static void Main() {
  6. var list = new[] { new { Codigo = "Codigo", Servico = "Servico", Quantidade = "Quantidade", Preco = "Preco" } }.ToList();
  7. WriteLine(list[0].Codigo);
  8. }
  9. }
  10.  
  11. //https://pt.stackoverflow.com/q/105776/101
Success #stdin #stdout 0.02s 16784KB
stdin
Standard input is empty
stdout
Codigo