Example #1
0
 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);
     }
 }
Example #2
0
 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));
 }