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
Merge branch 'feature/TopicViewModel-records' into develop
The new C# 9.0 record feature is optimal for view models and binding models, which we don't expect to change after they've been generated. Records are also potentially a bit faster, since they're immutable. Finally, in the rare case that we _do_ need to make modifications, the `record` syntax makes it easy to generate new versions via shallow copies via the `with` syntax.
The nature of records mandates that all downstream implementations of view and binding models are also converted to records, so this is (very much!) a breaking change. Since view models _should_ be read-only, however, and will generally be mapped using e.g. the `ITopicMappingService`, we don't expect this to be a difficult migration for adopters.
0 commit comments