Reputation: 823
I do deserialize object from database on application start, then during application life time user can update object, and at the end object are serialized back into db as xml string. Is there any way to find out that object was updated other than comparing initial and final string.
I know that is possible to use:
String.GetHashCode Method, but as noted that "Different strings can return the same hash code".
MD5 hash as done in How to compute and compare hash values by using Visual C#. Although I don't know if different strings can return same MD5 hash.
I know that my xml always will be less than 100KB.
Upvotes: 3
Views: 271