Пример #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (VaspIdentity.Length != 0)
            {
                hash ^= VaspIdentity.GetHashCode();
            }
            if (VaspPubkey.Length != 0)
            {
                hash ^= VaspPubkey.GetHashCode();
            }
            if (postalAddress_ != null)
            {
                hash ^= PostalAddress.GetHashCode();
            }
            if (placeOfBirth_ != null)
            {
                hash ^= PlaceOfBirth.GetHashCode();
            }
            hash ^= naturalPersonId_.GetHashCode();
            hash ^= juridicalPersonId_.GetHashCode();
            if (Bic.Length != 0)
            {
                hash ^= Bic.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public string GetVaspCode()
        {
            var vaspCode = new string(VaspIdentity.Skip(VaspIdentity.Length - 8).Take(8).ToArray());

            return(vaspCode);
        }