public override bool Equals(object obj) { if (ReferenceEquals(null, obj)) return false; return obj is Rectangle && Equals((Rectangle)obj); }