Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-287612: Needed Cast shown as redundant

$
0
0
Reporter Tod Gentille (rolias) Tod Gentille (rolias)
Created Jan 5, 2012 11:53:37 PM
Updated Jan 6, 2012 12:24:05 AM
Priority Normal
Type Bug
Fix versions Mirabile Futurum
State Open
Assignee Evgeny Pasynkov (pasynkov)
Subsystem Code Analysis
Affected versions 6.1
Fixed in build No Fixed in build
In the screenshot ReSharper indicates the cast to (_Application) is redundant but without it the C# compiler will generate the following warning:

  • Ambiguity between method 'Microsoft.Office.Interop.Word._Application.Quit(ref object, ref object, ref object)' and non-method 'Microsoft.Office.Interop.Word.ApplicationEvents4_Event.Quit'. Using method group.
    

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>