public override bool Equals(object obj) { if (obj == null || obj.GetType() != typeof(SerializableLayer)) { return(false); } SerializableLayer layer = (SerializableLayer)obj; return(Equals(layer)); }
protected bool Equals(SerializableLayer other) { return(Name == other.Name && Width == other.Width && Height == other.Height && MaxWidth == other.MaxWidth && MaxHeight == other.MaxHeight && BitmapBytes.SequenceEqual(other.BitmapBytes) && IsVisible == other.IsVisible && OffsetX == other.OffsetX && OffsetY == other.OffsetY && Opacity.Equals(other.Opacity)); }