Exemple #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());
        }
        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));
        }
Exemple #3
0
 public bool Equals(OwaAttachmentPolicyData other)
 {
     return(!object.ReferenceEquals(other, null) && (object.ReferenceEquals(other, this) || (SerializableDataBase.ArrayContentsEquals <string>(this.BlockFileTypes, other.BlockFileTypes) && SerializableDataBase.ArrayContentsEquals <string>(this.BlockMimeTypes, other.BlockMimeTypes) && SerializableDataBase.ArrayContentsEquals <string>(this.ForceSaveFileTypes, other.ForceSaveFileTypes) && SerializableDataBase.ArrayContentsEquals <string>(this.ForceSaveMimeTypes, other.ForceSaveMimeTypes) && SerializableDataBase.ArrayContentsEquals <string>(this.AllowFileTypes, other.AllowFileTypes) && SerializableDataBase.ArrayContentsEquals <string>(this.AllowMimeTypes, other.AllowMimeTypes) && this.TreatUnknownTypeAs == other.TreatUnknownTypeAs && this.DirectFileAccessOnPublicComputersEnabled == other.DirectFileAccessOnPublicComputersEnabled && this.DirectFileAccessOnPrivateComputersEnabled == other.DirectFileAccessOnPrivateComputersEnabled && this.ForceWacViewingFirstOnPublicComputers == other.ForceWacViewingFirstOnPublicComputers && this.ForceWacViewingFirstOnPrivateComputers == other.ForceWacViewingFirstOnPrivateComputers && this.WacViewingOnPublicComputersEnabled == other.WacViewingOnPublicComputersEnabled && this.WacViewingOnPrivateComputersEnabled == other.WacViewingOnPrivateComputersEnabled && this.ForceWebReadyDocumentViewingFirstOnPublicComputers == other.ForceWebReadyDocumentViewingFirstOnPublicComputers && this.ForceWebReadyDocumentViewingFirstOnPrivateComputers == other.ForceWebReadyDocumentViewingFirstOnPrivateComputers && this.WebReadyDocumentViewingOnPublicComputersEnabled == other.WebReadyDocumentViewingOnPublicComputersEnabled && this.WebReadyDocumentViewingOnPrivateComputersEnabled == other.WebReadyDocumentViewingOnPrivateComputersEnabled && SerializableDataBase.ArrayContentsEquals <string>(this.WebReadyFileTypes, other.WebReadyFileTypes) && SerializableDataBase.ArrayContentsEquals <string>(this.WebReadyMimeTypes, other.WebReadyMimeTypes) && SerializableDataBase.ArrayContentsEquals <string>(this.WebReadyDocumentViewingSupportedFileTypes, other.WebReadyDocumentViewingSupportedFileTypes) && SerializableDataBase.ArrayContentsEquals <string>(this.WebReadyDocumentViewingSupportedMimeTypes, other.WebReadyDocumentViewingSupportedMimeTypes) && this.WebReadyDocumentViewingForAllSupportedTypes == other.WebReadyDocumentViewingForAllSupportedTypes)));
 }
 public bool Equals(WacConfigData other)
 {
     return(!object.ReferenceEquals(other, null) && (object.ReferenceEquals(other, this) || (SerializableDataBase.ArrayContentsEquals <string>(this.WacViewableFileTypes, other.WacViewableFileTypes) && SerializableDataBase.ArrayContentsEquals <string>(this.WacEditableFileTypes, other.WacEditableFileTypes) && this.IsWacEditingEnabled == other.IsWacEditingEnabled && this.WacDiscoverySucceeded == other.WacDiscoverySucceeded && string.CompareOrdinal(this.OneDriveDocumentsUrl, other.OneDriveDocumentsUrl) == 0 && string.CompareOrdinal(this.OneDriveDocumentsDisplayName, other.OneDriveDocumentsDisplayName) == 0 && this.OneDriveDiscoverySucceeded == other.OneDriveDiscoverySucceeded)));
 }