Reporter | 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:
This doesn't happen with other numbers.
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.