Skip to content

Commit 3fbb1e4

Browse files
authored
Update style
1 parent 6c9b011 commit 3fbb1e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Documentation/Contributing/CodingGuidelines.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ Always declare an access modifier for all fields, properties and methods.
171171
protected int myVariable = 0;
172172

173173
// property should have protected setter
174-
public int MyVariable { get { return myVariable; } }
174+
public int MyVariable { get => myVariable; }
175175

176176
// No public / private access modifiers
177177
void Foo() { }
@@ -437,8 +437,8 @@ private float myValue; // <- Notice we co-located the backing field above our co
437437
/// </summary>
438438
public float MyValue
439439
{
440-
get{ return myValue; }
441-
set{ myValue = value }
440+
get => myValue;
441+
set => myValue = value;
442442
}
443443
```
444444

0 commit comments

Comments
 (0)