Skip to content

refactor: auto-generate sync methods - #807

Merged
michelebastione merged 5 commits into
masterfrom
refactor-code
Jun 17, 2025
Merged

refactor: auto-generate sync methods#807
michelebastione merged 5 commits into
masterfrom
refactor-code

Conversation

@izanhzh

@izanhzh izanhzh commented Jun 17, 2025

Copy link
Copy Markdown
Member

Remove unnecessary SYNC_ONLY definitions and delete some synchronous methods or classes, switching to auto-generation instead.

It would be even better if the sync-method-generator could support applying the attribute to an entire class for conversion. I've created a Feature Request for them.

@izanhzh
izanhzh requested a review from michelebastione June 17, 2025 02:03
Comment thread src/MiniExcel/OpenXml/MiniExcelStreamWriter.cs Outdated
@virzak

virzak commented Jun 17, 2025

Copy link
Copy Markdown
Contributor

This is great!

There's also the opportunity to eliminate CsvWriter.WriteValues. It diverged from WriteValuesAsync and I haven't had a chance to converge them.

@izanhzh

izanhzh commented Jun 17, 2025

Copy link
Copy Markdown
Member Author

This is great!

There's also the opportunity to eliminate CsvWriter.WriteValues. It diverged from WriteValuesAsync and I haven't had a chance to converge them.

done

@michelebastione michelebastione left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@michelebastione
michelebastione merged commit 0f1774e into master Jun 17, 2025
@izanhzh
izanhzh deleted the refactor-code branch June 18, 2025 00:06
shps951023 pushed a commit that referenced this pull request Aug 29, 2026
- Refactored code towards more auto-generated sync methods
- Refactored `CsvWriter`
- Added cancellation token to FlushAsync

---------

Co-authored-by: Victor Irzak <victor.irzak@zomp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants