I have an entityClass that I wish to serialize as a clone. But this class has a reference assembly from a custom framework which I don\'t have the access to the
entityClass
If you have PropertyChanged event then set it to [NonSerialized] in all objects(classes) you will Serialize.
[field: NonSerialized] public event PropertyChangedEventHandler PropertyChanged;