MudBreadcrumbs: Convert BreadcrumbItem to record type#10116
MudBreadcrumbs: Convert BreadcrumbItem to record type#10116henon merged 1 commit intoMudBlazor:devfrom
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #10116 +/- ##
=======================================
Coverage 91.17% 91.18%
=======================================
Files 411 411
Lines 12481 12483 +2
Branches 2429 2432 +3
=======================================
+ Hits 11380 11382 +2
Misses 557 557
Partials 544 544 ☔ View full report in Codecov by Sentry. |
|
Wouldn't it better to make just public record BreadcrumbItem(string Text, string? Href, bool Disabled = false, string? Icon = null);? |
That's a breaking change if you reference the variable name in the constructor: |
That's very interesting, I thought the generated code would lowercase it? But seems like I'm wrong No idea why would they do that, considering that record is just a "superstructure" over class. |
henon
left a comment
There was a problem hiding this comment.
Breaking change? What to write in the migration guide?
|
I don't think it's a breaking change either? The properties were readonly already, all you added is that with record it implements |
|
@ScarletKuro @henon Breaks inheritance because it's no longer a class.
Migration guide could say
|
|
Added to v8.0.0 Migration Guide |
Description
How Has This Been Tested?
Type of Changes
Checklist
dev).