/// <summary> /// Indicates whether this instance and a specified other <see cref="RasterMapper" /> are equal. /// </summary> /// <param name="obj">Another <see cref="RasterMapper" /> to compare to.</param> /// <returns><c>true</c> if <paramref name="another" /> and this instance represent the same value; otherwise, <c>false</c>.</returns> public Boolean Equals(RasterMapper other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Mode.Equals(other.Mode) && GeometryTransformation.SequenceEqual(other.GeometryTransformation)); }
/// <summary> /// Indicates whether this instance and a specified object are equal. /// </summary> /// <param name="obj">Another object to compare to.</param> /// <returns><c>true</c> if <paramref name="obj" /> and this instance are the same type and represent the same value; otherwise, <c>false</c>.</returns> public override Boolean Equals(Object obj) { if (ReferenceEquals(null, obj)) { return(false); } if (ReferenceEquals(this, obj)) { return(true); } return((obj is RasterMapper) && Mode.Equals((obj as RasterMapper).Mode) && GeometryTransformation.SequenceEqual((obj as RasterMapper).GeometryTransformation)); }