Make some variables readonly so they cannot be modified after

construction.
This commit is contained in:
2015-10-19 05:21:35 +01:00
parent 6a2cb7cf50
commit 8a4c93c7f4
2 changed files with 12 additions and 6 deletions

View File

@@ -1,3 +1,9 @@
2015-10-19 Natalia Portillo <claunia@claunia.com>
* Device/Variables.cs:
Make some variables readonly so they cannot be modified
after construction.
2015-10-19 Natalia Portillo <claunia@claunia.com> 2015-10-19 Natalia Portillo <claunia@claunia.com>
* Device/Variables.cs: * Device/Variables.cs:

View File

@@ -46,12 +46,12 @@ namespace DiscImageChef.Devices
object fd; object fd;
bool error; bool error;
int lastError; int lastError;
DeviceType type; readonly DeviceType type;
string manufacturer; readonly string manufacturer;
string model; readonly string model;
string revision; readonly string revision;
string serial; readonly string serial;
Decoders.SCSI.PeripheralDeviceTypes scsiType; readonly Decoders.SCSI.PeripheralDeviceTypes scsiType;
/// <summary> /// <summary>
/// Gets the Platform ID for this device /// Gets the Platform ID for this device