Skip to content

Commit 5f03e58

Browse files
committed
Minor improvements in code style
1 parent 5525127 commit 5f03e58

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

System.Device.I2c/I2cConnectionSettings.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ namespace System.Device.I2c
1010
public sealed class I2cConnectionSettings
1111
{
1212

13-
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
14-
private int _deviceAddress;
13+
[Diagnostics.DebuggerBrowsable(Diagnostics.DebuggerBrowsableState.Never)]
14+
private readonly int _deviceAddress;
1515

16-
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
17-
private I2cBusSpeed _busSpeed;
16+
[Diagnostics.DebuggerBrowsable(Diagnostics.DebuggerBrowsableState.Never)]
17+
private readonly I2cBusSpeed _busSpeed;
1818

19-
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
20-
private int _busId;
19+
[Diagnostics.DebuggerBrowsable(Diagnostics.DebuggerBrowsableState.Never)]
20+
private readonly int _busId;
2121

2222
private I2cConnectionSettings()
2323
{ }

0 commit comments

Comments
 (0)