Skip to content
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

Merged
merged 16 commits into from
Jan 29, 2024

Conversation

abdallahbeshi
Copy link
Contributor

@abdallahbeshi abdallahbeshi commented Oct 30, 2023

Description

Upgrade the projects to use .NET 8 and C# 12

Type of change

  • Bug fix.
  • Feature.
  • Consolidation.

Checklist

  • Is breaking change.
  • Documentation updated.
  • Tests included (please specify cases).

@abdallahbeshi abdallahbeshi marked this pull request as draft October 30, 2023 15:15
inakiesteve
inakiesteve previously approved these changes Nov 16, 2023
@abdallahbeshi abdallahbeshi reopened this Jan 29, 2024
@abdallahbeshi abdallahbeshi marked this pull request as ready for review January 29, 2024 10:26
@@ -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),
Copy link
Contributor

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? 😅

Copy link
Contributor Author

@abdallahbeshi abdallahbeshi Jan 29, 2024

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.

@abdallahbeshi abdallahbeshi merged commit 58cc774 into master Jan 29, 2024
7 checks passed
@abdallahbeshi abdallahbeshi deleted the net8-csharp12-upgrade branch January 29, 2024 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants