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

RSRP-287919: ReSharper completes zero with __MIDL_IWinTypes_0003

$
0
0
Reporter Greg Law (lothan) Greg Law (lothan)
Created Jan 21, 2012 11:43:13 PM
Updated Jan 21, 2012 11:43:13 PM
Priority Normal
Type Bug
Fix versions No Fix versions
State Submitted
Assignee Sergey Shkredov (serjic.shkredov)
Subsystem Code Completion
Affected versions 6.1.1
Fixed in build No Fixed in build
If you include System.Runtime.InteropServices in a C# source file, ReSharper will insist on completing every instance of 0 (the number zero) with one of the __MIDL_* structures. To duplicate this behavior, add using System.Runtime.InteropServices; to the source and in any method try to type 0 as an assignment or parameter. For example:

var a = 0;                      // typed statement
var a = __MIDL_IWinTypes_0003; // completed statement

var b = SomeMethod(0);                     // typed statement
var b = SomeMethod(__MIDL_IWintypes_0003); // completed statement

This doesn't happen with other numbers.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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