﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>liviu commented on Mutable Linq Expressions</title><description>And by the way, they listened to your recomandation:
  
  
the private members are READONLY now for Expression types....
  
  
In .NET 4.0
</description><link>http://ayende.com/4019/mutable-linq-expressions#comment7</link><guid>http://ayende.com/4019/mutable-linq-expressions#comment7</guid><pubDate>Wed, 24 Jun 2009 12:54:54 GMT</pubDate></item><item><title>liviu commented on Mutable Linq Expressions</title><description>Hi Ayende,
  
  
Now .net 4.0 has made the ExpressionVisitor from System.Core public.
  
That is very nice, say good by to hacks!!!
</description><link>http://ayende.com/4019/mutable-linq-expressions#comment6</link><guid>http://ayende.com/4019/mutable-linq-expressions#comment6</guid><pubDate>Wed, 24 Jun 2009 10:18:44 GMT</pubDate></item><item><title>Peter Morris commented on Mutable Linq Expressions</title><description>I would be far too scared to use code like this :-)  You might have a working product released when a .NET framework service pack comes along and plugs the whole.  Ouch!
  
  
Although I did find the LCG code very interesting.  It's something I've been meaning to look into for ages but never had a reason to allocate the time to :-)
</description><link>http://ayende.com/4019/mutable-linq-expressions#comment5</link><guid>http://ayende.com/4019/mutable-linq-expressions#comment5</guid><pubDate>Tue, 19 May 2009 09:10:45 GMT</pubDate></item><item><title>liam commented on Mutable Linq Expressions</title><description>stackoverflow is useful.  november 2008:
  
  
[stackoverflow.com/.../how-do-i-set-a-field-valu...](http://stackoverflow.com/questions/321650/how-do-i-set-a-field-value-in-an-c-expression-tree)</description><link>http://ayende.com/4019/mutable-linq-expressions#comment4</link><guid>http://ayende.com/4019/mutable-linq-expressions#comment4</guid><pubDate>Mon, 18 May 2009 10:29:41 GMT</pubDate></item><item><title>Krzysztof Kozmic commented on Mutable Linq Expressions</title><description>Oh, I see - than my statement about CLS not requiring it probably is wrong.
</description><link>http://ayende.com/4019/mutable-linq-expressions#comment3</link><guid>http://ayende.com/4019/mutable-linq-expressions#comment3</guid><pubDate>Mon, 18 May 2009 06:17:29 GMT</pubDate></item><item><title>Ayende Rahien commented on Mutable Linq Expressions</title><description>Krzysztof,
  
That is not accurate for LCG
  
  
You will get:
  
Unhandled Exception: System.Security.VerificationException: Operation could dest
  
abilize the runtime.
  
   at SetValue(MyConstantExpression , Object )
  
   at ConsoleApplication1.Program.Main(String[] args) in c:\temp\ConsoleApplication1\ConsoleApplication1\Program.cs:line 31
  
  
  
Using reflection, it works, but I don't know why
</description><link>http://ayende.com/4019/mutable-linq-expressions#comment2</link><guid>http://ayende.com/4019/mutable-linq-expressions#comment2</guid><pubDate>Mon, 18 May 2009 06:12:52 GMT</pubDate></item><item><title>Krzysztof Kozmic commented on Mutable Linq Expressions</title><description>Even if the field was marked readonly, you still could do that (not sure view LCG, but certainly via reflection).
  
readonly is more like a suggestion, not a hard rule, and CLS does not even require a language to support that IIRC.
</description><link>http://ayende.com/4019/mutable-linq-expressions#comment1</link><guid>http://ayende.com/4019/mutable-linq-expressions#comment1</guid><pubDate>Mon, 18 May 2009 06:06:29 GMT</pubDate></item></channel></rss>