I was just trying out this piece of code:
dynamic expando = new ExpandoObject( ) {
FirstName = "Oliver",
Name = "Sturm"
};
This doesn’t work! Not sure whether that’s intended (this is VS 2010 beta 2, in case you’re wondering), but it really seems like a feature that should work… of course, if you’re not familiar with the ExpandoObject, this piece of code does work:
dynamic expando = new ExpandoObject( );
expando.FirstName = "Oliver";
expando.Name = "Sturm";
Any insights? Or I’ll have to brave the volume of that mailing list…