-
Notifications
You must be signed in to change notification settings - Fork 72
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
Can we have a attribute to ignore some field/property? #7
Comments
Currently it does not supported by idea of library: "Cloned objects should be same as original and it should not know, that it cloned". |
I am looking forward to this feature implementation! I use the MVVM pattern, and most of my classes have implemented INotifyPropertyChanged interface. If I use deepClone with event/delegate, I will got some memory error and crash problem. |
Having the same issue. Trying to clone an item from grid results in cloning the entire grid internally due to this PropertyChanged Binding. |
Ok. I'll think, how to better implement such functionality (add some helper function to exclude/override cloning, or attribute, or something else, or all variants). |
It seems an attribute would be the best way to go(if possible) such as the NonSerializedAttribute which prohibits serialization of a field. |
Any progress? |
I have a class which implemented INotifyPropertyChanged interface.
How can I use deepClone without some property( PropertyChanged event )?
I have tried [field: NonSerialized] and [JsonIgnore], but it still clone the PropertyChanged event.
The text was updated successfully, but these errors were encountered: