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

Add CopyInto method to the builders #86

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bradphelan
Copy link

This adds the ability to reset a builder with an immutable object by copying all the fields into the builder. I think it handles recursive builders correctly.

Writing Roslyn syntax trees is an excercise in pain though. I'm not sure that T4 templates are easier to deal with. The expression trees are so verbose to be unintelligable.

@AArnott
Copy link
Owner

AArnott commented Aug 22, 2016

I haven't finished reviewing, but it looks promising. I would want to rename CopyInto to CopyFrom to more clearly indicate that the argument is providing the template instead of receiving it. Consider the .NET CopyTo method, which copies from the receiver to the argument.

@AArnott AArnott self-assigned this Aug 22, 2016
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.

2 participants