nextcloud / windows-universal

📱 Nextcloud Windows Mobile app
https://www.microsoft.com/store/apps/9nblggh532xq
Mozilla Public License 2.0
59 stars 34 forks source link

Refactor `GetHashCode()` of the `NextcloudClient/Types/ResourceInfo.cs` #249

Open SunboX opened 6 years ago

SunboX commented 6 years ago

The hash code is calculated using dynamic properties. So it will change, for example, if you favourite the object. This is bad practize. See Guideline: the integer returned by GetHashCode should never change here: https://blogs.msdn.microsoft.com/ericlippert/2011/02/28/guidelines-and-rules-for-gethashcode/