Use built-in Enum parse method, avoids keeping single-use Enums in memory

This commit is contained in:
Nuklon
2023-07-17 21:52:04 +02:00
committed by GitHub
parent 531ad2e4d5
commit d52dcb78bb
9 changed files with 14 additions and 19 deletions

View File

@@ -23,8 +23,7 @@ public class HostingSettings
/// Gets or sets a value for the location of temporary files.
/// </summary>
[DefaultValue(StaticLocalTempStorageLocation)]
public LocalTempStorage LocalTempStorageLocation { get; set; } =
Enum<LocalTempStorage>.Parse(StaticLocalTempStorageLocation);
public LocalTempStorage LocalTempStorageLocation { get; set; } = Enum.Parse<LocalTempStorage>(StaticLocalTempStorageLocation);
/// <summary>
/// Gets or sets a value indicating whether umbraco is running in [debug mode].