RS 3.1 does not recognise LINQ statements?

I added this to a console application in VS.Net 2008 RTM. I'm using RS 3.1 which I downloaded earlier this week.

using System;
using System.Linq;
namespace LINQ_samples
{
class Program
{
static void Main(string[] args)
{
string[] greetings = {"hello world", "hello LINQ", "hello Apress"};
var items = from s in greetings where s.EndsWith("LINQ") select s;
foreach(var item in items)
{
Console.WriteLine(item);
}
Console.ReadLine();
}
}
}

With the RS add-in enabled RS complains horribly about the var statement. It's almost like it does not know what to do with LINQ related statements. There's no problem compiling and running the code but RS does not like the code and complains about, what is, legal usage. If I disable the RS add-in and reload the project it all looks ok in VS.Net 2008.

Does RS 3.1 support LINQ statement syntax or do I need to configure in RS somehow. Help appreciated.

Peter.

EDIT: I searched around a bit and it looks like 3.1 does not support LINQ at this time and it's support is slated for 4.0? If that's the case does anyone know if there is an expected date we'll get LINQ syntax recognised?

Message was edited by:
Peter Hamilton-Scott

2 comments
Comment actions Permalink

I (a customer) have no idea when LINQ will be supported (or lambda expressions), but it appears that effort is underway along those lines. The most recent nightly build (Jan 9 2008) at least stopped deleting the "using System.Linq" if you reformat the file, which is new since 3.1 went live.

Until then, I try to artificially move all my LINQ usage into as few classes as possible (static methods if necessary), and simply live with the curent R# limitations when working on those classes. From experience (with VS2008) you do not always have to restart if you enable/disable R# via the add-in manager, but it is still a good safety step.

0
Comment actions Permalink

Hi,

Resharper 4.0 will support all C# 3.0 features.

They talked about releasing a EAP (Early access program) Build this
month.....

Kind regards,
Henning

"Brian Strelioff" <BKStrelioff@Hotmail.com> wrote in message
news:20805555.1200056768598.JavaMail.itn@is.intellij.net...
>I (a customer) have no idea when LINQ will be supported (or lambda
>expressions), but it appears that effort is underway along those lines. The
>most recent nightly build (Jan 9 2008) at least stopped deleting the "using
>System.Linq" if you reformat the file, which is new since 3.1 went live.
>

Until then, I try to artificially move all my LINQ usage into as few
classes as possible (static methods if necessary), and simply live with
the curent R# limitations when working on those classes. From experience
(with VS2008) you do not always have to restart if you enable/disable R#
via the add-in manager, but it is still a good safety step.


0

Please sign in to leave a comment.