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

@@ -75,7 +75,7 @@ public class WebRoutingSettings
/// Gets or sets a value for the URL provider mode (<see cref="UrlMode" />).
/// </summary>
[DefaultValue(StaticUrlProviderMode)]
public UrlMode UrlProviderMode { get; set; } = Enum<UrlMode>.Parse(StaticUrlProviderMode);
public UrlMode UrlProviderMode { get; set; } = Enum.Parse<UrlMode>(StaticUrlProviderMode);
/// <summary>
/// Gets or sets a value for the Umbraco application URL.