Skip to content

Commit 9853017

Browse files
committed
(#358) StandardColorParsers: Dictionary is now readonly
1 parent acd239b commit 9853017

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1414
- .NET Framework 4.6.2 or later,
1515
- .NET 6.0 and later.
1616
- **(Breaking change.)** `WpfMath.Colors.IColorParser::Parse` now accepts `IReadOnlyList` instead of `IEnumerable`.
17+
- **(Minor breaking change.)** `XamlMath.Colors.StandardColorParsers::Dictionary` public field is now `readonly`.
1718

1819
### Removed
1920
- **(Breaking change.)** Delete the `TexRenderer` class. Use extension methods from `WpfMath.Rendering.WpfTeXFormulaExtensions` and `WpfMath.Rendering.TeXFormulaExtensions` to replace its functionality in your code.

src/XamlMath.Shared/Colors/StandardColorParsers.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ namespace XamlMath.Colors;
44

55
public static class StandardColorParsers
66
{
7-
// TODO[#358]: Make readonly
8-
public static IReadOnlyDictionary<string, IColorParser> Dictionary = new Dictionary<string, IColorParser>
7+
public static readonly IReadOnlyDictionary<string, IColorParser> Dictionary = new Dictionary<string, IColorParser>
98
{
109
["ARGB"] = new IntegerRgbColorParser(AlphaChannelMode.AlphaFirst),
1110
["argb"] = new FloatRgbColorParser(AlphaChannelMode.AlphaFirst),

0 commit comments

Comments
 (0)