Reporter | 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+.