You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Closesaxuno#415
* `Format.HasNested` checks Items for existing `Placeholder`
* Update Format Class Initialization (mark overload with arg `bool hasNested` as obsolete
* feat: Format.HasNested checks for existing Placeholder
Closes#415
* `Format.HasNested` checks Items for existing `Placeholder`
* Update Format Class Initialization (mark overload with arg `bool hasNested` as obsolete
Format.Items
andFormat.HasNested
can get out-of-sync.The
Parser
setsHasNested
correctly when adding aPlaceholder
:SmartFormat/src/SmartFormat/Core/Parsing/Parser.cs
Lines 400 to 401 in cbb27ee
However,
HasNested
will not change automatically in case aPlaceholder
is added or removed, e.g. in an extension.Consequently this overload should marked as obsolete, as it also sets
HasNested
independently.SmartFormat/src/SmartFormat/Core/Parsing/Format.cs
Lines 88 to 95 in cbb27ee
The text was updated successfully, but these errors were encountered: