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

RSRP-469258: VB - Wrong possible multiple enumeration of IEnumerable warning

$
0
0
Reporter Rachel Davids (RachelD) Rachel Davids (RachelD)
Created Apr 13, 2018 4:13:20 PM
Updated Apr 23, 2018 5:50:11 PM
Subsystem Psi - VB.NET
Assignee Ivan Serduk (IvanSerduk)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
RSRP-428454 suggests this is fixed in 2018.1 EAP 1

I am running 2018.1 EAP 8 (VS2015)

Also see attached screenshot.
The two calls to CheckParamNotNull in the sample

Public Class Class1

    Private shared sub CheckParamNotNull(<NoEnumeration> value As IEnumerable)
        if value Is nothing
            Throw new ArgumentException("null parameter")
        End If
    End sub

    <PublicAPI>
    public sub DoSomething(value As IEnumerable)
        CheckParamNotNull(value)
        CheckParamNotNull(value)
    End sub

End Class

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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