tag:blogger.com,1999:blog-3761674922653685009.post9022914859717060880..comments2023-11-05T03:40:13.874-08:00Comments on unfold: Symbols in C# 3.0Jafar Husainhttp://www.blogger.com/profile/15444397760399385108noreply@blogger.comBlogger28125tag:blogger.com,1999:blog-3761674922653685009.post-55508754946777604432009-07-21T04:33:34.528-07:002009-07-21T04:33:34.528-07:00Acer Laptop Batteries
Apple Laptop Batteries
...<a href="http://www.chinalaptopstore.com/notebook-acer-laptop-batteries_c1" rel="nofollow">Acer Laptop Batteries</a><br /> <a href="http://www.chinalaptopstore.com/notebook-apple-laptop-batteries_c2" rel="nofollow">Apple Laptop Batteries</a><br /> <a href="http://www.chinalaptopstore.com/notebook-compaq-laptop-batteries_c3" rel="nofollow">Compaq Laptop Batteries</a><br /> <a href="http://www.chinalaptopstore.com/notebook-dell-laptop-batteries_c7" rel="nofollow">Dell Laptop Batteries</a><br /> <a href="http://www.chinalaptopstore.com/notebook-hp-laptop-batteries_c8" rel="nofollow">HP Laptop Batteries</a><br /> <a href="http://www.chinalaptopstore.com/notebook-ibm-laptop-batteries_c10" rel="nofollow">IBM Laptop Batteries</a><br /> <a href="http://www.chinalaptopstore.com/notebook-lenovo-laptop-batteries_c11" rel="nofollow">Lenovo Laptop Batteries</a><br /> <a href="http://www.chinalaptopstore.com/notebook-samsung-laptop-batteries_c12" rel="nofollow">Samsung Laptop Batteries</a><br /> <a href="http://www.chinalaptopstore.com/notebook-sony-laptop-batteries_c13" rel="nofollow">Sony Laptop Batteries</a><br /> <a href="http://www.chinalaptopstore.com/notebook-toshiba-laptop-batteries_c14" rel="nofollow">Toshiba Laptop Batteries</a><br /> <a href="http://www.chinalaptopstore.com/notebook-asus-laptop-batteries_c15" rel="nofollow">ASUS Laptop Batteries</a><br /> <a href="http://www.chinalaptopstore.com/notebook-gateway-laptop-batteries_c18" rel="nofollow">Gateway Laptop Batteries</a><br /> <a href="http://www.chinalaptopstore.com/notebook-lg-laptop-batteries_c19" rel="nofollow">LG Laptop Batteries</a><br /> <a href="http://www.chinalaptopstore.com/notebook-nec-laptop-batteries_c20" rel="nofollow">NEC Laptop Batteries</a><br /> <a href="http://www.chinalaptopstore.com/notebook-hitachi-laptop-batteries_c21" rel="nofollow">HITACHI Laptop Batteries</a><br /> <a href="http://www.chinalaptopstore.com/notebook-panasonic-laptop-batteries_c22" rel="nofollow">Panasonic Laptop Batteries</a><br /> <a href="http://www.chinalaptopstore.com/notebook-benq-laptop-batteries_c23" rel="nofollow">BenQ Laptop Batteries</a><br /> <a href="http://www.chinalaptopstore.com/notebook-fujitsu-laptop-batteries_c24" rel="nofollow">Fujitsu Laptop Batteries</a>Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3761674922653685009.post-62104736952446203652009-06-10T18:54:10.439-07:002009-06-10T18:54:10.439-07:00Burberry polo shirt the steady, solid, so many you...<a href="http://www.poloshirtsshop.com" rel="nofollow">Burberry polo shirt</a> the steady, solid, so many young girls also love it. Speaking of people of a <a href="http://www.poloshirtsshop.com" rel="nofollow">ralph lauren polo</a>, think it a sign of nobility elegant waving in the horse club.<a href="http://www.poloshirtsshop.com" rel="nofollow">spyder jacket</a> in the cold in your winter activities can be easily.<a href="http://www.poloshirtsshop.com" rel="nofollow">columbia jacket</a> it is expensive, but here you do not need to consider the price of it. <a href="http://www.poloshirtsshop.com" rel="nofollow">the north face jacket</a> one of my favorite money, I do not know how many in this world of its fans.<br /><a href="http://www.ed-hardy-clothing.us" rel="nofollow">ed hardy clothing </a><br /><a href="http://www.ed-hardy-clothing.us" rel="nofollow"> ed hardy clothes</a><br /><a href="http://www.ed-hardy-clothing.us" rel="nofollow">ed hardy shirts </a><br /><a href="http://www.ed-hardy-clothing.us" rel="nofollow">ed hardy t-shirts </a><br /><a href="http://www.ed-hardy-clothing.us" rel="nofollow">ed hardy sunglasses </a><br /><a href="http://www.ed-hardy-clothing.us" rel="nofollow"> ed hardy mens</a><br /><a href="http://www.ed-hardy-clothing.us" rel="nofollow">ed hardy womens </a><br /><a href="http://www.brandshandbags.com" rel="nofollow">Wholesale Handbags</a><br /><a href="http://www.brandshandbags.com" rel="nofollow">Cheap Handbags</a>Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3761674922653685009.post-81332910479602400542009-06-10T18:53:51.233-07:002009-06-10T18:53:51.233-07:00In preparation for the purchase of a tennis racque...In preparation for the purchase of a <a href="http://www.tennis-rackets.us/" rel="nofollow">tennis racquet</a>before, we must consider your financial ability to bear; On this basis, a further comparison, as far as possible, choose your <a href="http://www.tennis-rackets.us/" rel="nofollow">tennis racket</a>. Now a lot of <a href="http://www.tennis-rackets.us/" rel="nofollow">cheap tennis racquet</a> and more mixed materials, the proportion of mixed-use to control the stiffness of the <a href="http://www.tennis-rackets.us/" rel="nofollow">tennis racquet discount</a> and the shock-absorbing capacity, the more rigid <a href="http://www.tennis-rackets.us/" rel="nofollow">cheap tennis racket</a>, the swing more powerful force; but the relative resilience of the shock-absorbing capacity and <a href="http://www.tennis-rackets.us/" rel="nofollow">discount tennis racket</a> performance of talks on the easier it is for the wrist and elbow injury.<br /><a href="http://www.tennis-rackets.us/" rel="nofollow">head junior tennis racket</a><br /><a href="http://www.tennis-rackets.us/" rel="nofollow">wilson tennis racquet</a> <br /><a href="http://www.tennis-rackets.us/" rel="nofollow">wilson tennis racket</a> <br /><a href="http://www.tennis-rackets.us/" rel="nofollow">head tennis racket</a><br /><a href="http://www.tennis-rackets.us/" rel="nofollow">babolat tennis racket</a> <br /><a href="http://www.brandshandbags.com" rel="nofollow">Womens Handbags</a><br /><a href="http://www.brandshandbags.com" rel="nofollow">Cheap Purses</a><br /><a href="http://www.brandshandbags.com" rel="nofollow">Designer Handbags</a>Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3761674922653685009.post-81333038195697316912009-04-07T17:45:00.000-07:002009-04-07T17:45:00.000-07:00My friends and I like to buy Anarchy credits, beca...My friends and I like to buy <A HREF="http://www.virgame.com/anarchy-online-c-53.html" REL="nofollow">Anarchy credits</A>, because the <A HREF="http://www.virgame.com/anarchy-online-c-53.html" REL="nofollow">Anarchy Online credits</A> is very useful to upgrade equipment. Only your equipment becomes better, then you can win this game. In <A HREF="http://www.virgame.com/anarchy-online-c-53.html" REL="nofollow">Anarchy gold</A>, you can buy everything you want in this game. Tomorrow will be my birthday, so my friends promise to <A HREF="http://www.virgame.com/anarchy-online-c-53.html" REL="nofollow">buy AO credits</A> as gifts. I am so happy. They understand me so well, <A HREF="http://www.virgame.com/anarchy-online-c-53.html" REL="nofollow">Anarchy online gold</A> is my favorite. <BR/><BR/>I like <A HREF="http://www.virgame.com/angels-online-c-142.html" REL="nofollow">angels gold</A> very much because it is very useful. In fact at first sight I have fallen in love with <A HREF="http://www.virgame.com/angels-online-c-142.html" REL="nofollow">angels online gold</A>. So no matter how much I have spent to <A HREF="http://www.virgame.com/angels-online-c-142.html" REL="nofollow">buy angels gold</A>, I never regret. Because of <A HREF="http://www.virgame.com/angels-online-c-142.html" REL="nofollow">cheap angels online gold</A>, I meet a lot of friends.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3761674922653685009.post-69405200386715538182009-03-12T11:18:00.000-07:002009-03-12T11:18:00.000-07:00Interestingly enough, the equivalent VB syntax doe...Interestingly enough, the equivalent VB syntax doesn't work with intellisense:<BR/><BR/><BR/>Public Module SymbolExtensions<BR/> <Extension()> _<BR/> Public Function GetPropertySymbol(Of T, R)(ByVal obj As T, ByVal expr As Expression(Of Func(Of T, R))) As String<BR/> Return CType(CType(expr, System.Linq.Expressions.LambdaExpression).Body, System.Linq.Expressions.MemberExpression).Member.Name<BR/> End Function<BR/>End Module<BR/><BR/>Me.GetPropertySymbol(Function(o) o.Name)<BR/><BR/>But, the compiler does catch it, so that's something.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3761674922653685009.post-76626805116370094922007-10-31T12:14:00.000-07:002007-10-31T12:14:00.000-07:00Hello all!Hello all!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3761674922653685009.post-31524025578426970362007-10-31T11:47:00.000-07:002007-10-31T11:47:00.000-07:00AIXweu actually, that's brilliant. Thank you. I'm ...AIXweu actually, that's brilliant. Thank you. I'm going to pass that on to a couple of people.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3761674922653685009.post-71067924468197818162007-10-30T02:42:00.000-07:002007-10-30T02:42:00.000-07:00Please write anything else!Please write anything else!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3761674922653685009.post-2412562816143398272007-10-29T23:27:00.000-07:002007-10-29T23:27:00.000-07:00Thanks to author.Thanks to author.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3761674922653685009.post-25829795006684119872007-10-28T08:00:00.000-07:002007-10-28T08:00:00.000-07:00actually, that's brilliant. Thank you. I'm going t...actually, that's brilliant. Thank you. I'm going to pass that on to a couple of people.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3761674922653685009.post-74049248363371979782007-10-27T13:13:00.000-07:002007-10-27T13:13:00.000-07:00Magnific!Magnific!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3761674922653685009.post-77816332239914867212007-10-27T12:25:00.000-07:002007-10-27T12:25:00.000-07:00actually, that's brilliant. Thank you. I'm going t...actually, that's brilliant. Thank you. I'm going to pass that on to a couple of people.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3761674922653685009.post-77860150689734142302007-10-26T12:49:00.000-07:002007-10-26T12:49:00.000-07:00Thanks to author.Thanks to author.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3761674922653685009.post-65122609461495584532007-10-26T12:22:00.000-07:002007-10-26T12:22:00.000-07:00Nice Article.Nice Article.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3761674922653685009.post-39598346248871473252007-10-26T11:11:00.000-07:002007-10-26T11:11:00.000-07:00bDuek2 Thanks to author.bDuek2 Thanks to author.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3761674922653685009.post-59700831933510099732007-10-26T03:25:00.000-07:002007-10-26T03:25:00.000-07:00This comment has been removed by a blog administrator.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3761674922653685009.post-8961837537899283572007-08-14T10:05:00.000-07:002007-08-14T10:05:00.000-07:00Jafar, I'm aware one can do it with methods right ...Jafar, I'm aware one can do it with methods right now in C# 2: simply construct a delegate around your function, then call the Name property on the delegate target. But you can't do it with properties, since delegates can't point to properties.<BR/><BR/>So, I'm looking forward to symbols like this in C# 3. :)Judah Gabriel Himangohttps://www.blogger.com/profile/10277699587853707632noreply@blogger.comtag:blogger.com,1999:blog-3761674922653685009.post-48742028585057697582007-06-18T16:18:00.000-07:002007-06-18T16:18:00.000-07:00@Dariusyou are getting "=>" wrong, it is c#'s lamb...@Dariusyou are getting "=>" wrong, it is c#'s lambda/anonymous function<BR/><BR/>In c#: (o => o.Name)<BR/>In python: (lambda(o): o.Name)<BR/>In javascript: (function(o){return o.Name;})<BR/>In (my broken understanding of) ruby: {|o| return o.Name}<BR/>#or probably just<BR/>{|o| o.Name}<BR/><BR/><BR/>to get what you want do: ( student => student.LastContract.DateCreated)<BR/> <BR/>Your exapmle will return a function that takes an object as parameter and returns another function that takes anothey object as parameter, then returns the value of "DateCreated" in the closureAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3761674922653685009.post-71418755746799448632007-04-18T02:28:00.000-07:002007-04-18T02:28:00.000-07:00Here's another idea: http://forums.microsoft.com/M...Here's another idea: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1487253&SiteID=1&mode=1<BR/><BR/>which is a refinement of yours (requires hypothetical compiler change though)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3761674922653685009.post-92048389962888120702007-04-11T19:53:00.000-07:002007-04-11T19:53:00.000-07:00Oopps, that URL didn't come through. I'll try aga...Oopps, that URL didn't come through. I'll try again:<BR/><BR/><A HREF="http://dotnet.agilekiwi.com/blog/2007/04/symbols-part-2.html" REL="nofollow"/>John Ruskhttps://www.blogger.com/profile/06542045668842804974noreply@blogger.comtag:blogger.com,1999:blog-3761674922653685009.post-863318564619926022007-04-11T19:50:00.000-07:002007-04-11T19:50:00.000-07:00Judah,The case you mention (symbol for method can ...Judah,<BR/><BR/>The case you mention (symbol for <I>method</I> can be fully implemented right now in C# 2.<BR/><BR/>See http://dotnet.agilekiwi.com/blog/2007/04/symbols-part-2.htmlJohn Ruskhttps://www.blogger.com/profile/06542045668842804974noreply@blogger.comtag:blogger.com,1999:blog-3761674922653685009.post-31917684928869252492007-03-19T17:53:00.000-07:002007-03-19T17:53:00.000-07:00Actually, if you back your code up just one step, ...Actually, if you back your code up just one step, you've got the basics of the "info-of" feature-wish: a way to get MemberInfo without having to jump through all the hoops.<BR/><BR/>Nice example, by the way.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3761674922653685009.post-63428362437587281782007-03-08T08:08:00.000-08:002007-03-08T08:08:00.000-08:00In unit tests, we'll do things like this in mock o...In unit tests, we'll do things like this in mock objects:<BR/><BR/>// myFooMock is a mock IFoo, which has a Fobnicate method<BR/>myFooMock.Expect("Fobnicate"); <BR/><BR/>If I'm understanding you right, we should be able to use symbols to get the name of the Fobnicate method. Is that accurate, Jafar?Judah Gabriel Himangohttps://www.blogger.com/profile/10277699587853707632noreply@blogger.comtag:blogger.com,1999:blog-3761674922653685009.post-6962219488482528522007-03-07T16:20:00.000-08:002007-03-07T16:20:00.000-08:00Oh the heck with it. I just wrote the code and po...Oh the heck with it. I just wrote the code and posted it :-). Check it out <A HREF="http://themechanicalbride.blogspot.com/2007/03/symbols-in-c-30-reloaded.html" REL="nofollow">here</A>.Jafar Husainhttps://www.blogger.com/profile/15444397760399385108noreply@blogger.comtag:blogger.com,1999:blog-3761674922653685009.post-76314618450135261802007-03-07T15:10:00.000-08:002007-03-07T15:10:00.000-08:00The current version doesn't work for nested member...The current version doesn't work for nested member expressions. It's trivial to modify it to do so though. Just keep following up the MemberExpressions up the expression tree and appending the names to a string. Then you would be able to do:<BR/><BR/>this.GetPropertySymbol( o => o.Student.LastContact.DateCreated )<BR/> //returns "Student.LastContact.DateCreated"<BR/><BR/>If you have any questions or problems doing it yourself I'll write the code and post it.Jafar Husainhttps://www.blogger.com/profile/15444397760399385108noreply@blogger.com