tag:blogger.com,1999:blog-37171590.post1849280415078558120..comments2023-11-03T06:17:57.056-07:00Comments on Onur Gumus's Blog: How to serialize Lambda ExpressionsOnur Gümüşhttp://www.blogger.com/profile/07923423373852682999noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-37171590.post-10601171418099903712016-07-18T20:50:59.944-07:002016-07-18T20:50:59.944-07:00Really awesome blog. Your blog is really useful fo...<br />Really awesome blog. Your blog is really useful for me. Thanks for sharing this informative blog. Keep update your blog.<br /><br /><a href="http://www.imarksweb.org" rel="nofollow">www.imarksweb.org</a>Anonymoushttps://www.blogger.com/profile/03983279751843228358noreply@blogger.comtag:blogger.com,1999:blog-37171590.post-89183754947677954702012-07-04T12:55:14.149-07:002012-07-04T12:55:14.149-07:00Hi there,
I realise this post is over 4 years ol...Hi there, <br /><br />I realise this post is over 4 years old but I was wondering if there was anything else on offer that might do the same. I am trying to serialise an expression but it contains Generic types and this method fails. <br /><br />It's of the form: Expression><br /><br />Can you think why this might fail? Can you offer any hints at a better method?<br /><br />cheers,<br /><br />matUnknownhttps://www.blogger.com/profile/06869543375855991730noreply@blogger.comtag:blogger.com,1999:blog-37171590.post-76849762484230350152012-05-23T07:56:44.137-07:002012-05-23T07:56:44.137-07:00Hi,
Thanks for the blog, I am using this Expressio...Hi,<br />Thanks for the blog, I am using this ExpressionBuilder for my xmlSerializer, my issue is the after serializing the content has version and culture also, I need version independent so that it can accomodate any future versions of my .net. is there a way I can make this builder version independent?<br /><br />Regards<br />VelVelhttps://www.blogger.com/profile/13118153890759399431noreply@blogger.comtag:blogger.com,1999:blog-37171590.post-10746808138513451292011-11-08T08:15:04.471-08:002011-11-08T08:15:04.471-08:00Out of curiosity, how would you go about limiting ...Out of curiosity, how would you go about limiting the priviledges of this lambda? Say I used a lamdba based localization system where my localizable resource file contains serializes lamdbas to format values according to different cultures. How would I prevent someone from injecting malicious code in the ressource files?Stonkiehttps://www.blogger.com/profile/03800970033868619107noreply@blogger.comtag:blogger.com,1999:blog-37171590.post-60398095494719998922011-10-07T09:55:33.958-07:002011-10-07T09:55:33.958-07:00Hi,
I worked against your DLL and it seems to wor...Hi, <br />I worked against your DLL and it seems to work for me. Can you post your code changes somewhere?<br />ThanksAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-37171590.post-58875735358877130832011-07-28T05:00:43.853-07:002011-07-28T05:00:43.853-07:00can i use this in an commercial product, where we ...can i use this in an commercial product, where we want to improve our performance? always hard to understand license text! :)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-37171590.post-63651237369338587632009-11-29T00:38:33.706-08:002009-11-29T00:38:33.706-08:00Hello Nico,
Unfortunately default implementation o...Hello Nico,<br />Unfortunately default implementation of MetaLinq works fully lazily. It means nothing will evaluated at the time of seralization. So deseralization will crash if same local member is not defined in same context. As a workaround you can use this http://emperon.googlepages.com/ExpressionBuilder.dll<br /><br />This is an experimental modification I made to meta linq that does eager evaluation. It may have some unwanted side effects due to all method calls and member calls are evaluated eagerly.Onur Gümüşhttps://www.blogger.com/profile/07923423373852682999noreply@blogger.comtag:blogger.com,1999:blog-37171590.post-81981843584059125812009-11-24T02:46:41.392-08:002009-11-24T02:46:41.392-08:00Hi,
great blog. Thanks, it works almost great, b...Hi, <br /><br />great blog. Thanks, it works almost great, but i have a small question. The following expression works fine:<br />Expression[Func[Foo, bool]] func = ((Foo f) => f.Age == 7);<br /><br />(I have to write normal brakets because the others are not allowed here)<br /><br />but this one doesn't work. can you help me with that?<br /><br />int age=7;<br />Expression[Func[Foo, bool]] func = ((Foo f) => f.Age == age);<br /><br />NicoDosihrishttps://www.blogger.com/profile/08182809194165324251noreply@blogger.com