Skip to content

Instantly share code, notes, and snippets.

@fontanka16
Created November 23, 2012 09:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fontanka16/4134814 to your computer and use it in GitHub Desktop.
Save fontanka16/4134814 to your computer and use it in GitHub Desktop.
right and wrong way to reference an dynamic object with a reserved word as its name
dynamic activities = null;
//Wrong
var objects = new List<dynamic>(activities.items).Select(a=>a.object);
//Right
var objects = new List<dynamic>(activities.items).Select(a=>a.@object);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment