diff --git a/czishrink/netczicompress/Models/CompressionLevel.cs b/czishrink/netczicompress/Models/CompressionLevel.cs index f5f3948..2fb34f5 100644 --- a/czishrink/netczicompress/Models/CompressionLevel.cs +++ b/czishrink/netczicompress/Models/CompressionLevel.cs @@ -11,10 +11,10 @@ namespace netczicompress.Models; /// public record CompressionLevel { - private readonly int internalValue = DefaultValue; - public static readonly CompressionLevel Default; + private readonly int internalValue = DefaultValue; + static CompressionLevel() { Default = new CompressionLevel() { Value = DefaultValue }; diff --git a/czishrink/netczicompress/Models/ThreadCount.cs b/czishrink/netczicompress/Models/ThreadCount.cs index 963f199..30aaf8d 100644 --- a/czishrink/netczicompress/Models/ThreadCount.cs +++ b/czishrink/netczicompress/Models/ThreadCount.cs @@ -6,10 +6,10 @@ namespace netczicompress.Models; public partial record ThreadCount { - private readonly int internalValue = Maximum; - public static readonly ThreadCount Default; + private readonly int internalValue = Maximum; + static ThreadCount() { DefaultValue = Maximum;