Exemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (LaneId.Length != 0)
            {
                hash ^= LaneId.GetHashCode();
            }
            if (Length != 0D)
            {
                hash ^= Length.GetHashCode();
            }
            hash ^= leftOut_.GetHashCode();
            hash ^= rightOut_.GetHashCode();
            if (Cost != 0D)
            {
                hash ^= Cost.GetHashCode();
            }
            if (centralCurve_ != null)
            {
                hash ^= CentralCurve.GetHashCode();
            }
            if (IsVirtual != false)
            {
                hash ^= IsVirtual.GetHashCode();
            }
            if (RoadId.Length != 0)
            {
                hash ^= RoadId.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = IsVirtual.GetHashCode();
         hashCode = (hashCode * 397) ^ (Type != null ? Type.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Getter != null ? Getter.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Setter != null ? Setter.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (FullName != null ? FullName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (DeclaringType != null ? DeclaringType.GetHashCode() : 0);
         return(hashCode);
     }
 }
Exemplo n.º 3
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = IsVirtual.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)MethodForm;
         hashCode = (hashCode * 397) ^ (int)Visibility;
         hashCode = (hashCode * 397) ^ (Parameters != null ? Parameters.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ReturnType != null ? ReturnType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (FullName != null ? FullName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (DeclaringType != null ? DeclaringType.GetHashCode() : 0);
         return(hashCode);
     }
 }