public override int GetHashCode() { return(Identifier.GetHashCode() ^ Type.GetHashCode() ^ IsArray.GetHashCode() ^ IsNullable.GetHashCode()); }
public override int GetHashCode() { unchecked { var hashCode = (FullName != null ? FullName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ IsArray.GetHashCode(); hashCode = (hashCode * 397) ^ IsByRef.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = (PackageName != null ? PackageName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TypeName != null ? TypeName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ IsBuiltIn.GetHashCode(); hashCode = (hashCode * 397) ^ IsArray.GetHashCode(); hashCode = (hashCode * 397) ^ ArraySize; return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = Type != null?Type.GetHashCode() : 0; hashCode = GenericArguments.Aggregate(hashCode, (current, type) => (current * 397) ^ (type != null ? type.GetHashCode() : 0)); hashCode = (hashCode * 397) ^ IsArray.GetHashCode(); hashCode = ArrayDimensions.Aggregate(hashCode, (current, dim) => (current * 397) ^ dim.GetHashCode()); return(hashCode); } }
public override int GetHashCode() { unchecked // overflow is fine, just wrap { var hash = 17; // suitable nullity checks etc, of course :) hash = hash * 23 + IsPrimitive.GetHashCode(); hash = hash * 23 + IsArray.GetHashCode(); hash = hash * 23 + Properties.GetHashCode(); return(hash); } }
public override int GetHashCode() { var hashCode = -1128608277; if (Name != null) { hashCode = hashCode * -1521134295 + Name.GetHashCode(); } hashCode = hashCode * -1521134295 + Address.GetHashCode(); hashCode = hashCode * -1521134295 + Size.GetHashCode(); hashCode = hashCode * -1521134295 + Type.GetHashCode(); hashCode = hashCode * -1521134295 + IsArray.GetHashCode(); hashCode = hashCode * -1521134295 + IsPointer.GetHashCode(); hashCode = hashCode * -1521134295 + DisplayType.GetHashCode(); hashCode = hashCode * -1521134295 + FixedAddr.GetHashCode(); return(hashCode); }
public override int GetHashCode() { return(Context.GetHashCode() ^ (Type.GetHashCode() << 3) ^ (IsArray.GetHashCode() << 6)); }