Mike Taulty's Blog
Bits and Bytes from Microsoft UK
Anonymous Types & Read-Only Properties
Mike Taulty's Blog

Mike's Badges

Follow on Twitter
View mike's profile on slideshare
Add to Technorati Favorites
CW Blog Awards

I hadn't noticed this before;

    static void Main(string[] args)
    {
      var v = new { Prop1 = "A", Prop2 = "B" };

      v.Prop1 = "Foo";
    }

 

Here's the error;

image


Posted Wed, Oct 17 2007 1:55 AM by mtaulty
Filed under: ,

Comments

Loic Bar - Analyste programmeur wrote Type anonyme en Read-Only
on Wed, Oct 17 2007 2:12 PM
Type anonyme en Read-Only
(C) Mike Taulty, 2009. All rights reserved. The information in this weblog is provided "AS IS" with no warranties, and confers no rights. This weblog does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion. Inappropriate comments will be deleted at the authors discretion. All code samples are provided "AS IS" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems