Use readonly instead of private set

This commit is contained in:
Matt Nadareski
2024-10-03 12:52:27 -04:00
parent 3406f3c4b3
commit b08921a94a

View File

@@ -12,17 +12,17 @@
/// <summary>
/// Filename to report progress for
/// </summary>
public string? Filename { get; private set; }
public readonly string? Filename { get; }
/// <summary>
/// Value between 0 and 1 representign the percentage completed
/// </summary>
public float Percentage { get; private set; }
public readonly float Percentage { get; }
/// <summary>
/// Protection information to report
/// </summary>
public string? Protection { get; private set; }
public readonly string? Protection { get; }
public ProtectionProgress(string? filename, float percentage, string? protection)
{