diff options
author | Kenneth Hsu <kennethhsu@gmail.com> | 2019-10-19 20:56:21 +0300 |
---|---|---|
committer | Kenneth Hsu <kennethhsu@gmail.com> | 2019-10-19 23:59:22 +0300 |
commit | 2aa76881a51ce91762f7caabcc114434647532c2 (patch) | |
tree | 19f18239244918e0314b8282f7efa89c72acb2c6 /thirdparty | |
parent | 91505e62238a68f020d99bd9a7c1a2be8e3b25cf (diff) |
Mark fields that don't need to be reassigned as readonly.
This makes it explicit at compile-time that these fields should not be
reassigned outside the constructor.
Diffstat (limited to 'thirdparty')
-rw-r--r-- | thirdparty/DnsLite/DnsLite.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/thirdparty/DnsLite/DnsLite.cs b/thirdparty/DnsLite/DnsLite.cs index bc96d264a..93011164a 100644 --- a/thirdparty/DnsLite/DnsLite.cs +++ b/thirdparty/DnsLite/DnsLite.cs @@ -26,7 +26,7 @@ namespace DnsLib private int position, id, length;
private string name;
private ArrayList dnsServers;
- private static int DNS_PORT = 53;
+ private static readonly int DNS_PORT = 53;
readonly Encoding ASCII = Encoding.ASCII;
public DnsLite()
{
|