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

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