-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade the projects to use .NET 8 and C# 12 #230
Conversation
@@ -96,7 +96,7 @@ private SujetaType Convert(TaxSummary summary) | |||
{ | |||
return new SujetaType | |||
{ | |||
Exenta = summary.TaxExempt.Map(items => items.Select(i => Convert(i)).ToArray()).GetOrNull(), | |||
Exenta = summary.TaxExempt.Match(items => items.Select(i => Convert(i)).ToArray(), _ => null), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really need this? NoExenta just below uses Map so I would rather have the same behavior in both properties unless there is something else that I am missing? 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its because of the return type in the map/match, anyway i improved it even further, so for an empty option of a collection, it would return empty collection instead of null.
Description
Upgrade the projects to use .NET 8 and C# 12
Type of change
Checklist