Skip to content

Commit 6147375

Browse files
Return CharItem instead of IChar from CharCollection
On second thought this is not a breaking change since CharItem implements IChar, so you could still do something lke IEnumerable<IChar> chars = requestHandlerSettings.CharCollection
1 parent d77e198 commit 6147375

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Umbraco.Core/Configuration/Models/RequestHandlerSettings.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@ public class RequestHandlerSettings
7878
/// <summary>
7979
/// Add additional character replacements, or override defaults
8080
/// </summary>
81-
public IEnumerable<IChar> CharCollection { get; set; }
81+
public IEnumerable<CharItem> CharCollection { get; set; }
8282

8383
/// <summary>
8484
/// Get concatenated user and default character replacements
8585
/// taking into account <see cref="EnableDefaultCharReplacements"/>
8686
/// </summary>
87-
public IEnumerable<IChar> GetCharReplacements()
87+
public IEnumerable<CharItem> GetCharReplacements()
8888
{
8989
// TODO We need to special handle ":", as this character is special in keys
9090

@@ -109,7 +109,7 @@ public IEnumerable<IChar> GetCharReplacements()
109109
}
110110
}
111111

112-
var mergedCollections = DefaultCharCollection.Union<IChar>(CharCollection, new CharacterReplacementEqualityComparer());
112+
var mergedCollections = DefaultCharCollection.Union<CharItem>(CharCollection, new CharacterReplacementEqualityComparer());
113113

114114
return mergedCollections;
115115
}

0 commit comments

Comments
 (0)