Home
Options

Dump anonimous type

edited May 2014
hi,
i have a C# statement that is working in vs 2013 and i wanted to analise the process in linqpad.
the problem is that i run the code and don´t get any result or error...

string produtor="xpto"; DateTime dinicio=new DateTime(2014,05,01); DateTime dfim=new DateTime(2014,05,30); var medias = analisesDetalhes .Where(r => r.analisesID.Produtor.UserName==produtor) .GroupBy(g => g.parametro, r => r.valor) .Select(g => new { parametro=g.Key, valor=g.Average() }); medias.Dump();

i´m i missing something??

Comments

  • Options
    Hi boy, you need do.

    string produtor="xpto"; DateTime dinicio=new DateTime(2014,05,01); DateTime dfim=new DateTime(2014,05,30); var medias = analisesDetalhes .Where(r => r.analisesID.Produtor.UserName==produtor) .GroupBy(g => new { g.parametro, g.valor}) .Select(g => new { parametro=g.Key, valor=g.Average(V => V.Valor) }); medias.Dump();


    Good luck!
Sign In or Register to comment.