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>
/// Current sector number
/// </summary>
/// TODO: Maske this `protected set`
public abstract ulong CurrentSector { get; set; }
/// <summary>

View File

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

View File

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

View File

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