-
Notifications
You must be signed in to change notification settings - Fork 7
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
How to clone only selected properties #14
Comments
Hi. here is the basic example: If your source object is initialized with null values, just ignore the properties you don't need as follows:
OR (if you have a lot of properties you want to ignore)
If you need to set the targets to null (because the properties are initialized to a value != null in the constructor or via initializers)
I'll let you know when the feature is available by commenting to this post. Hope it helps |
Thank you very much, UltraMapper is wonderful, and you are so nice. |
If I have a source object, how i clone only selected properties of it ,and set others to null after clone.
The text was updated successfully, but these errors were encountered: