-
-
Notifications
You must be signed in to change notification settings - Fork 344
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 to .NET 8.0 and refactor input value extraction #681
Conversation
var fieldValues = type | ||
.GetFields(BindingFlags.Public | BindingFlags.Instance) | ||
.Select(field => new { field.Name, Value = field.GetValue(valueObject) }); |
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.
The old code had a check to exclude a field by name if it was previously added as a property. I removed this check because I can't think how this can ever be true. But please correct me if I am wrong.
var sheetStream = sheet.Open(); | ||
var fullName = sheet.FullName; | ||
|
||
var inputValues = _inputValueExtractor.ToValueDictionary(value); |
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.
This is where the new class is called: InputValueExtractor.ToValueDictionary()
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.
.NET 6.0 (LTS) end date is Nov 12, 2024, we will follow the date to upgrade next month.
@ramioh 👍👍👍 If no other partner's feedback, PR will be merged Nov 12, 2024(.NET 6.0 (LTS) end date), and could we invite you to our team? |
SaveByTemplate
, for theExcelOpenXmlTemplate
class and its three files.InputValueExtractor
FluentAssertions
in tests to help with asserting results in less code.