Ensure access modifiers set properly

This commit is contained in:
Matt Nadareski
2021-07-05 16:23:50 -07:00
parent 49d8d8c23a
commit 32a686d4d1
4 changed files with 4 additions and 3 deletions

View File

@@ -26,6 +26,7 @@ namespace RedBookPlayer.Common.Discs
/// <summary> /// <summary>
/// Current sector number /// Current sector number
/// </summary> /// </summary>
/// TODO: Maske this `protected set`
public abstract ulong CurrentSector { get; set; } public abstract ulong CurrentSector { get; set; }
/// <summary> /// <summary>

View File

@@ -160,7 +160,7 @@ namespace RedBookPlayer.Common.Hardware
public int Volume public int Volume
{ {
get => _volume; get => _volume;
set => this.RaiseAndSetIfChanged(ref _volume, value); private set => this.RaiseAndSetIfChanged(ref _volume, value);
} }
private bool? _playing; private bool? _playing;

View File

@@ -42,7 +42,7 @@ namespace RedBookPlayer.Common.Hardware
public int Volume public int Volume
{ {
get => _volume; get => _volume;
set private set
{ {
int tempVolume = value; int tempVolume = value;
if(value > 100) if(value > 100)

View File

@@ -53,7 +53,7 @@ namespace RedBookPlayer.Common
public ulong SectionStartSector public ulong SectionStartSector
{ {
get => _sectionStartSector; get => _sectionStartSector;
protected set => this.RaiseAndSetIfChanged(ref _sectionStartSector, value); private set => this.RaiseAndSetIfChanged(ref _sectionStartSector, value);
} }
/// <summary> /// <summary>