Bug?

I cut and pasted the following code from here and ReSharper did not
recognize "get_Item" even though it compiles fine. Here's an example:
object oRng = oDoc.Bookmarks.get_Item( ref oEndOfDoc ).Range ;

I think this code is written this way to support access for VB.NET, but I
can't remember for sure on this.

http://support.microsoft.com/kb/316384

Thanks,
Derek Price


2 comments
Comment actions Permalink

Hello Derek,

unfortunately this is a known problem. ReSharper sometimes does not recognize
methods prefixed
with "get_" and "set_" and coming from Interop assemblies. We'll try to fix
this issue ASAP.

Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I cut and pasted the following code from here and ReSharper did
not recognize "get_Item" even though it compiles fine. Here's an
example: object oRng = oDoc.Bookmarks.get_Item( ref oEndOfDoc ).Range
;

I think this code is written this way to support access for VB.NET,
but I can't remember for sure on this.

http://support.microsoft.com/kb/316384

Thanks,
Derek Price



0
Comment actions Permalink

Great! I just wanted to make sure you knew about it.
Thanks,
Derek Price

"Dmitry Shaporenkov" <dsha@jetbrains.com> wrote in message
news:4315632406157257660672@news.intellij.net...

Hello Derek,

>

unfortunately this is a known problem. ReSharper sometimes does not

recognize

methods prefixed
with "get_" and "set_" and coming from Interop assemblies. We'll try to

fix

this issue ASAP.

>

Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"



0

Please sign in to leave a comment.