Extension Methods on internal classes

I've got some internal classes with extension methods, also using internalsvisibleto, code compiles perfectly but resharper flips on it.
The suggestion says that it will add an using statement (which is already there) but when activating it it just rewrites the code to ExtensionClass.ExtensionMethod(instance, ...) instead of instance.ExtensionMethod(...)

As I said, the code does compile and works perfectly :(

Windows Vista 64bit, VS2008, first had Resharper 4.1 now tried build 939 and still the same.

Edited by: XIU on Oct 8, 2008 5:43 PM

3 comments
Comment actions Permalink

Hello,

I've got some internal classes with extension methods, also using
internalsvisibleto, code compiles perfectly but resharper flips on it.


Indeed, the Import Popup for internal extension methods has problems when
invoked from another assembly. I guess the InternalsVisibleToAttribute adds
to the trouble.


Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”


0
Comment actions Permalink

Is this going to be addressed in a Resharper update?

0
Comment actions Permalink

This issue is resolved in the upcoming 4.5 release

--
Eugene Pasynkov
ReSharper Technical Lead
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"


"Eric" <no_reply@jetbrains.com> wrote in message
news:22464036.115641226444689283.JavaMail.jive@app4.labs.intellij.net...

Is this going to be addressed in a Resharper update?



0

Please sign in to leave a comment.