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

RSRP-469406: Suggest converting struct to readonly struct

$
0
0
Reporter Drew Noakes (drewnoakes) Drew Noakes (drewnoakes)
Created Apr 25, 2018 7:23:00 PM
Updated Apr 25, 2018 7:23:00 PM
Subsystem Code Analysis - C#
Assignee Ivan Serduk (IvanSerduk)
Priority Normal
State Submitted
Type Feature
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
public struct Foo {
    public int Bar { get; }
    public Foo(int bar) => Bar = bar;
}

R# can suggest adding the readonly modifier to struct. in C# 7.2+.


Viewing all articles
Browse latest Browse all 106942

Trending Articles