Hardware/Parameter.cs
changeset 195 0ee888c485d5
parent 182 4801e9eaf979
child 344 3145aadca3d2
     1.1 --- a/Hardware/Parameter.cs	Tue Sep 21 10:33:28 2010 +0000
     1.2 +++ b/Hardware/Parameter.cs	Tue Sep 21 20:32:36 2010 +0000
     1.3 @@ -41,9 +41,9 @@
     1.4  namespace OpenHardwareMonitor.Hardware {
     1.5  
     1.6    internal struct ParameterDescription {
     1.7 -    private string name;
     1.8 -    private string description;
     1.9 -    private float defaultValue;    
    1.10 +    private readonly string name;
    1.11 +    private readonly string description;
    1.12 +    private readonly float defaultValue;    
    1.13  
    1.14      public ParameterDescription(string name, string description, 
    1.15        float defaultValue) {
    1.16 @@ -60,11 +60,11 @@
    1.17    }
    1.18  
    1.19    internal class Parameter : IParameter {
    1.20 -    private ISensor sensor;
    1.21 +    private readonly ISensor sensor;
    1.22      private ParameterDescription description;
    1.23      private float value;
    1.24      private bool isDefault;
    1.25 -    private ISettings settings;
    1.26 +    private readonly ISettings settings;
    1.27  
    1.28      public Parameter(ParameterDescription description, ISensor sensor, 
    1.29        ISettings settings)