public override int GetHashCode()
 {
     unchecked
     {
         var result = UserId.GetHashCode();
         result = (result * 397) ^ MaxFileSize.GetHashCode();
         result = (result * 397) ^ Size.GetHashCode();
         return(result);
     }
 }
Ejemplo n.º 2
0
        public virtual int _GetUniqueIdentifier()
        {
            var hashCode = 399326290;

            hashCode = hashCode * -1521134295 + (Id?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (FileName?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (FolderPath?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (MaxFileSize?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (AllowedExtensions?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Blob?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (StorageMedium?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (UploadedBy?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (UploadDateTime?.GetHashCode() ?? 0);
            return(hashCode);
        }