Generics parsing is broken
Build 210 Generics parsing is still broken. The parser does not recognize
IComparable]]>, rendering the class useless for the parser. Is there a setting
to stop it from recognizing this command?
Please sign in to leave a comment.
Not repeatable at my side :(
Please could you post a small piece of code which illustrates the problem
--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Bob" <wieda@mac.com> wrote in message
news:7c6aeb0454fa8c7bb6fd04b873e@news.jetbrains.com...
>
BTW, there is no IComparable interface....... -- Eugene Pasynkov Developer JetBrains, Inc http://www.jetbrains.com "Develop with pleasure!" "Bob" ]]> wrote in message
news:7c6aeb0454fa8c7bb6fd04b873e@news.jetbrains.com...
>
Hello Eugene,
Umm... yes there is. Here's an simple class that demonstrates two different
uses of generics (neither of which are recognized by Resharper build 210).
It compiles and runs successfully in VS2005:
using System;
namespace ConsoleApplication1
{
class Program : IComparable { public event EventHandler OnMyEvent; static void Main() { Program program = new Program(); program.OnMyEvent += new EventHandler(program_OnMyEvent); program.OnMyEvent(program, new EventArgs()); } static void program_OnMyEvent(object sender, EventArgs e) { Program program = (Program) sender; Console.WriteLine(program.CompareTo("foo")); } #region IComparable]]> Members
public int CompareTo(string other)
{
return string.Compare("foo", other);
}
#endregion
}
}
-- Sean Timm
This problem is well-known, and I hope it will be fixed in the next build
--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Sean Timm" <thread@gmail.com> wrote in message
news:de321cae7785f8c7bbd26cac7d2c@news.jetbrains.com...
>
>> BTW, there is no IComparable interface....... >> >]]>
>
>
>
>
>
>
>
>
>
>