Ejemplo n.º 1
0
        protected override int InternalGetHashCode()
        {
            int num = 17;

            num = (num * 397 ^ SerializableDataBase.ArrayContentsHash <string>(this.BlockFileTypes));
            num = (num * 397 ^ SerializableDataBase.ArrayContentsHash <string>(this.BlockMimeTypes));
            num = (num * 397 ^ SerializableDataBase.ArrayContentsHash <string>(this.ForceSaveFileTypes));
            num = (num * 397 ^ SerializableDataBase.ArrayContentsHash <string>(this.ForceSaveMimeTypes));
            num = (num * 397 ^ SerializableDataBase.ArrayContentsHash <string>(this.AllowFileTypes));
            num = (num * 397 ^ SerializableDataBase.ArrayContentsHash <string>(this.AllowMimeTypes));
            num = (num * 397 ^ ((this.TreatUnknownTypeAs == null) ? 0 : this.TreatUnknownTypeAs.GetHashCode()));
            num = (num * 397 ^ this.DirectFileAccessOnPublicComputersEnabled.GetHashCode());
            num = (num * 397 ^ this.DirectFileAccessOnPrivateComputersEnabled.GetHashCode());
            num = (num * 397 ^ this.ForceWacViewingFirstOnPublicComputers.GetHashCode());
            num = (num * 397 ^ this.ForceWacViewingFirstOnPrivateComputers.GetHashCode());
            num = (num * 397 ^ this.WacViewingOnPublicComputersEnabled.GetHashCode());
            num = (num * 397 ^ this.WacViewingOnPrivateComputersEnabled.GetHashCode());
            num = (num * 397 ^ this.ForceWebReadyDocumentViewingFirstOnPublicComputers.GetHashCode());
            num = (num * 397 ^ this.ForceWebReadyDocumentViewingFirstOnPrivateComputers.GetHashCode());
            num = (num * 397 ^ this.WebReadyDocumentViewingOnPublicComputersEnabled.GetHashCode());
            num = (num * 397 ^ this.WebReadyDocumentViewingOnPrivateComputersEnabled.GetHashCode());
            num = (num * 397 ^ SerializableDataBase.ArrayContentsHash <string>(this.WebReadyFileTypes));
            num = (num * 397 ^ SerializableDataBase.ArrayContentsHash <string>(this.WebReadyMimeTypes));
            num = (num * 397 ^ SerializableDataBase.ArrayContentsHash <string>(this.WebReadyDocumentViewingSupportedFileTypes));
            num = (num * 397 ^ SerializableDataBase.ArrayContentsHash <string>(this.WebReadyDocumentViewingSupportedMimeTypes));
            return(num * 397 ^ this.WebReadyDocumentViewingForAllSupportedTypes.GetHashCode());
        }
Ejemplo n.º 2
0
        protected override int InternalGetHashCode()
        {
            int num = 17;

            num   = (num * 397 ^ SerializableDataBase.ArrayContentsHash <string>(this.WacViewableFileTypes));
            num   = (num * 397 ^ SerializableDataBase.ArrayContentsHash <string>(this.WacEditableFileTypes));
            num   = (num * 397 ^ this.OneDriveDocumentsUrl.GetHashCode());
            num   = (num * 397 ^ this.OneDriveDocumentsDisplayName.GetHashCode());
            num <<= 3;
            num  |= (this.IsWacEditingEnabled ? 4 : 0);
            num  |= (this.WacDiscoverySucceeded ? 2 : 0);
            return(num | (this.OneDriveDiscoverySucceeded ? 1 : 0));
        }