Skip to content

Instantly share code, notes, and snippets.

View mariusmg's full-sized avatar

Marius Gheorghe mariusmg

  • Bucharest, Romania
View GitHub Profile
@mariusmg
mariusmg / gist:ae6958080c9289fd29ec9c82e14f49e8
Created March 26, 2018 15:20
C# anonymous object to tuple
public (string content, DateTime udapteDate) Get(int id)
{
return this.Find().Where(x => x.Id == id).Select(note => new {content = note.Content, updateDate = note.UpdateDate}).FirstOrDefault();
}