Beispiel #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (MapName.Length != 0)
            {
                hash ^= MapName.GetHashCode();
            }
            if (GridId != 0)
            {
                hash ^= GridId.GetHashCode();
            }
            if (DataId != 0)
            {
                hash ^= DataId.GetHashCode();
            }
            if (Direction != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Direction);
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #2
0
        public override int GetHashCode()
        {
            int prime  = 31;
            int result = 1;

            result = prime * result + (string.IsNullOrEmpty(DataId) ? 0 : DataId.GetHashCode());
            result = prime * result + (string.IsNullOrEmpty(Group) ? 0 : Group.GetHashCode());
            return(result);
        }
 /// <exclude />
 public override int GetHashCode()
 => DataId.GetHashCode() ^ InterfaceType.GetHashCode() ^ ProviderName.GetHashCode()
 ^ DataScopeIdentifier.GetHashCode() ^ LocaleScope.GetHashCode();