Exemple #1
0
        public override int GetHashCode()
        {
            var hashCode = 1083378608;

            hashCode = hashCode * -1521134295 + FSAccess.GetHashCode();
            hashCode = hashCode * -1521134295 + Read.GetHashCode();
            hashCode = hashCode * -1521134295 + Write.GetHashCode();
            hashCode = hashCode * -1521134295 + Modify.GetHashCode();
            hashCode = hashCode * -1521134295 + Access.GetHashCode();
            return(hashCode);
        }
Exemple #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Version.Length != 0)
            {
                hash ^= Version.GetHashCode();
            }
            hash ^= authors_.GetHashCode();
            if (Copyrights.Length != 0)
            {
                hash ^= Copyrights.GetHashCode();
            }
            if (ContactInformation.Length != 0)
            {
                hash ^= ContactInformation.GetHashCode();
            }
            if (Reference.Length != 0)
            {
                hash ^= Reference.GetHashCode();
            }
            if (thumbnailImage_ != null)
            {
                hash ^= ThumbnailImage.GetHashCode();
            }
            if (AvatarPermission != global::VrmProtobuf.Meta.Types.AvatarPermissionType.OnlyAuthor)
            {
                hash ^= AvatarPermission.GetHashCode();
            }
            if (ViolentUsage != false)
            {
                hash ^= ViolentUsage.GetHashCode();
            }
            if (SexualUsage != false)
            {
                hash ^= SexualUsage.GetHashCode();
            }
            if (GameUsage != false)
            {
                hash ^= GameUsage.GetHashCode();
            }
            if (CommercialUsage != global::VrmProtobuf.Meta.Types.CommercialUsageType.PersonalNonCommercialNonProfit)
            {
                hash ^= CommercialUsage.GetHashCode();
            }
            if (PoliticalOrReligiousUsage != false)
            {
                hash ^= PoliticalOrReligiousUsage.GetHashCode();
            }
            if (OtherPermissionUrl.Length != 0)
            {
                hash ^= OtherPermissionUrl.GetHashCode();
            }
            if (CreditNotation != global::VrmProtobuf.Meta.Types.CreditNotationType.Required)
            {
                hash ^= CreditNotation.GetHashCode();
            }
            if (AllowRedistribution != false)
            {
                hash ^= AllowRedistribution.GetHashCode();
            }
            if (Modify != global::VrmProtobuf.Meta.Types.ModifyType.Prohibited)
            {
                hash ^= Modify.GetHashCode();
            }
            if (OtherLicenseUrl.Length != 0)
            {
                hash ^= OtherLicenseUrl.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemple #3
0
 public override int GetHashCode()
 {
     return(FunctionalityId.GetHashCode() + (RoleId == null? 0 : RoleId.GetHashCode()) + Read.GetHashCode() + New.GetHashCode() + Modify.GetHashCode());
 }