Property can be made read-only.

This commit is contained in:
2021-08-17 17:20:58 +01:00
parent 4b40c45b36
commit 15e3fd60c2

View File

@@ -47,12 +47,12 @@ namespace Aaru.Decoders.SCSI
public struct DecodedSense
{
public FixedSense? Fixed;
public DescriptorSense? Descriptor;
public byte ASC => Descriptor?.ASC ?? (Fixed?.ASC ?? 0);
public byte ASCQ => Descriptor?.ASCQ ?? (Fixed?.ASCQ ?? 0);
public SenseKeys SenseKey => Descriptor?.SenseKey ?? (Fixed?.SenseKey ?? SenseKeys.NoSense);
public string Description => Sense.GetSenseDescription(ASC, ASCQ);
public FixedSense? Fixed;
public DescriptorSense? Descriptor;
public readonly byte ASC => Descriptor?.ASC ?? (Fixed?.ASC ?? 0);
public readonly byte ASCQ => Descriptor?.ASCQ ?? (Fixed?.ASCQ ?? 0);
public readonly SenseKeys SenseKey => Descriptor?.SenseKey ?? (Fixed?.SenseKey ?? SenseKeys.NoSense);
public readonly string Description => Sense.GetSenseDescription(ASC, ASCQ);
}
[SuppressMessage("ReSharper", "MemberCanBeInternal"), SuppressMessage("ReSharper", "NotAccessedField.Global"),