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

CloneOptions.UseClone #68

Open
Grauenwolf opened this issue Mar 11, 2022 · 0 comments
Open

CloneOptions.UseClone #68

Grauenwolf opened this issue Mar 11, 2022 · 0 comments
Labels
Milestone

Comments

@Grauenwolf
Copy link
Collaborator

When CloneOptions.UseClone is used, objects will be checked for a parameterless Clone method. If found, this will be used instead of cloning the object property by property.

If CloneOptions.UseClone and CloneOptions.UseIClonable are both specified, CloneOptions.UseIClonable will take precedence. In theory, they are the same method and an interface call is faster than a reflection call.

@Grauenwolf Grauenwolf added this to the Anchor 4.1 milestone Mar 11, 2022
@Grauenwolf Grauenwolf removed this from the Anchor 4.1 milestone Jul 9, 2022
@Grauenwolf Grauenwolf added this to the Anchor 4.3 milestone Jul 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant