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 /Duplicati/License | |
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 'Duplicati/License')
-rw-r--r-- | Duplicati/License/LicenseEntry.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Duplicati/License/LicenseEntry.cs b/Duplicati/License/LicenseEntry.cs index dc3e87c43..91296925a 100644 --- a/Duplicati/License/LicenseEntry.cs +++ b/Duplicati/License/LicenseEntry.cs @@ -31,7 +31,7 @@ namespace Duplicati.License /// <summary>
/// The component title
/// </summary>
- public string Title;
+ public readonly string Title;
/// <summary>
/// The homepage of the component
/// </summary>
@@ -39,7 +39,7 @@ namespace Duplicati.License /// <summary>
/// The license for the component
/// </summary>
- public string License;
+ public readonly string License;
/// <summary>
/// The json data
/// </summary>
|