statler / dxcorecommunityplugins

Automatically exported from code.google.com/p/dxcorecommunityplugins
0 stars 0 forks source link

Linq format #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
How about a plugin to format Linq like this :-

var twitter = FluentTwitter.CreateRequest()
                   .AuthenticateAs (USERNAME, PASSWORD)
               .Statuses ()
               .Update   (message)
               .AsJson   ();

Original issue reported on code.google.com by andrew.j...@alquist.co.uk on 13 May 2009 at 10:59

GoogleCodeExporter commented 9 years ago
Just so that I'm understanding you correctly...
AFAIK...What you have shown here is not linq. It is however a fluent API.

One example of LINQ might be:

//Apologies for poor C# as I am a Vb.Net guy normally :)
var SomeQuery = from Item in ItemCollection
                where Item.Description.Contains(" ")
                select Item.Name
var Answer = SomeQuery.ToList;

Which of these would you like to be processed?

Original comment by RoryBec...@gmail.com on 2 Mar 2010 at 4:07

GoogleCodeExporter commented 9 years ago

Original comment by RoryBec...@gmail.com on 3 Jun 2010 at 12:40