public override int GetHashCode() { unchecked { int hashCode = (FixedLegthArray != null ? FixedLegthArray.GetHashCode() : 0); hashCode = (hashCode * 397) ^ VarLength.GetHashCode(); hashCode = (hashCode * 397) ^ (VarLegthArray != null ? VarLegthArray.GetHashCode() : 0); return(hashCode); } }
public bool Equals(WithArray other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(FixedLegthArray.ElementsEqual(other.FixedLegthArray) && VarLength == other.VarLength && VarLegthArray.ElementsEqual(other.VarLegthArray)); }