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

Callbacks implementation for MemberCloner #337

Merged
merged 5 commits into from
Aug 10, 2022

Conversation

CursedLand
Copy link
Contributor

Solves [#333]

@CursedLand CursedLand changed the base branch from master to development August 6, 2022 21:56
Copy link
Owner

@Washi1337 Washi1337 left a comment

Choose a reason for hiding this comment

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

Nice, thanks a lot for writing an implementation and tests!

Few things here and there regarding code style inconsistencies (maybe check .editorconfig), but I think the main thing that we probably want to consider changing is making all methods virtual instead of abstract, and moving the OnClonedXXX members into the interface. See comments below.

Other than that, lgtm.

src/AsmResolver.DotNet/Cloning/CallbackCloneListener.cs Outdated Show resolved Hide resolved
src/AsmResolver.DotNet/Cloning/IMemberClonerListener.cs Outdated Show resolved Hide resolved
src/AsmResolver.DotNet/Cloning/IMemberClonerListener.cs Outdated Show resolved Hide resolved
src/AsmResolver.DotNet/Cloning/IMemberClonerListener.cs Outdated Show resolved Hide resolved
src/AsmResolver.DotNet/Cloning/MemberCloner.cs Outdated Show resolved Hide resolved
src/AsmResolver.DotNet/Cloning/MemberCloner.Fields.cs Outdated Show resolved Hide resolved
src/AsmResolver.DotNet/Cloning/MemberClonerListener.cs Outdated Show resolved Hide resolved
Copy link
Owner

@Washi1337 Washi1337 left a comment

Choose a reason for hiding this comment

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

Nice, thanks a lot. This extension will definitely be useful. 👍

@Washi1337 Washi1337 merged commit 17383f0 into Washi1337:development Aug 10, 2022
@Washi1337 Washi1337 added this to the 5.0.0 milestone Aug 10, 2022
@Washi1337 Washi1337 added enhancement dotnet Issues related to AsmResolver.DotNet labels Aug 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dotnet Issues related to AsmResolver.DotNet enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants