Further fix to configuration classes using ISet, resolving regression with custom 404 pages (#19573)

Further fix to configuration classes using ISet, resolving regression with custom 404 pages.
This commit is contained in:
Andy Butland
2025-06-30 14:37:04 +02:00
committed by GitHub
parent b81d45901b
commit cfbbfa004c
3 changed files with 14 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ public class ContentSettings
/// <summary>
/// Gets or sets a value for the collection of error pages.
/// </summary>
public ISet<ContentErrorPage> Error404Collection { get; set; } = new HashSet<ContentErrorPage>();
public IEnumerable<ContentErrorPage> Error404Collection { get; set; } = [];
/// <summary>
/// Gets or sets a value for the preview badge mark-up.