text: Anonymous Types – Dynamic Programming With C# was
  .Get() functions, but no
  .Set() function. Why is that? was intended to be. Instead of using reflection you’re using a Dictionary, specifically with strings (for the property names) and objects (for the values).
  You create objects the same way as before, but now you have access to a few more features and functions.
  / = empty!)
  Source Code
  Download AnonymousType.Remix.cs
  .
  Anonymous Types – Help C# Pretend to be Javascript « Yet Another WebDev Blog…
  Thank you for submitting this cool story – Trackback from DotNetShoutout…
  DotNetShoutout
  May 29, 2009 at 4:40 am
  This is freakin ace. Thanks so much
  sacha barber
  June 24, 2009 at 8:25 am
  […] […]
  sachabarber.net » LINQ : 2 nice things I just found
  June 24, 2009 at 9:41 am
  ExpandoObject
  July 1, 2009 at 9:10 am
  I think the C# 4.0 Dynamics will make your Anonymous type more interesting.
  Michael Brown
  July 7, 2009 at 12:34 pm
  It will certainly make it cleaner – This method relies a lot on strings so it can break easily.
  The dynamic option will be a much better alternative when it arrives 🙂
  webdev_hb
  July 7, 2009 at 12:59 pm
  You should try doing this:
  public static T CBE(this T anonymous)
  {
  return anonymous;
  }
  var anonymous = new { name = “name” };
  var noMoreAnonymous = anonymous.CBE();
  Console.WriteLine(noMoreAnonymous.name);
  Simone
  July 11, 2009 at 3:32 am
  I’m assuming you mean have a function that casts your type to another anonymous type. That works if you keep your variable in the same scope – If you leave the scope of that function then you have no way of knowing what the type is anymore.
  Essentially, you could do just…
  var m = new { name = “name” };
  var p = m;
  This was just used to help move an Anonymous type in and out of different scopes.
  I’ve seen other people do this before…
  public static T CastAs(object value, T format) {
  return (T)anonymous;
  }
  var m = new { name = “m” };
  var p = CastAs(m, new { name = default(string) });
  Which works regardless of scope.
  Thanks for the comment!
  webdev_hb
  July 11, 2009 at 9:09 am
  […] This post was Twitted by mgroves […]
  Twitted by mgroves
  July 22, 2009 at 4:04 pm
  Very nice, thanks for sharing (and thanks Sacha for posting on your blog).
  Using the dynamic type in C# 4.0 will indeed make it look cleaner but it won’t save things breaking since there is no compile time checking. Plus, your current implementation will run faster than a dynamic object.
  Wole
  July 24, 2009 at 6:13 am
  […] Anonymous Types (Sorta MVC related…) […]
  MVC Post Round-Up « Hugoware
  October 5, 2009 at 7:30 pm
  […] I use a lot of Models in my projects now. I used to suggest that you pass around objects using a wrapper for anonymous types but I’ve found that if you plan to move it from a Controller to a View or from a View to a […]
  Render Partial — But With Arguments! « Hugoware
  October 26, 2009 at 11:43 pm
  […] now I’m working on my own driver to talk to Mongo that heavily relies on my AnonymousType code (anybody remember that old stuff?). It is still early on in the project so if you’re interested in helping feel free to contact […]
  Using MongoDB With Visual Studio « Hugoware
  February 10, 2010 at 2:04 am
  […] creator of CSMongo and jLinq has created a class called AnonymousType that will allow you to persist an anonymous type beyond the scope of the method that creates that object. In other words he has process that will allow to define […]
  Persistent AnonymousTypes and Querying with Linq « ActiveEngine
  September 19, 2010 at 4:15 pm
  […] idea regarding a class AnonymousType that could persist values from an anonymous object. The AnonymousType, created by Hugo Benocci models an individual object. In a sense this is a hyper-charged […]
  Deserializing to Persistent AnonymousTypes with JSON.Net « ActiveEngine
  October 9, 2010 at 11:17 am