Skip to content

Commit 6752b88

Browse files
committed
fix smells: 'TcpClientWrapper' - make '_host' and '_port' 'readonly'
1 parent a8b7c24 commit 6752b88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

NetSdrClientApp/Networking/TcpClientWrapper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ namespace NetSdrClientApp.Networking
1212
{
1313
public class TcpClientWrapper : ITcpClient
1414
{
15-
private string _host;
16-
private int _port;
15+
private readonly string _host;
16+
private readonly int _port;
1717
private TcpClient? _tcpClient;
1818
private NetworkStream? _stream;
1919
private CancellationTokenSource _cts;

0 commit comments

Comments
 (0)