···7171 !filterable.FilterTerms.Any(filterTerm =>
7272 filterTerm.IndexOf(term, StringComparison.InvariantCultureIgnoreCase) >= 0)).ToArray();
73737474- var hasFilterableChildren = filterable as IHasFilterableChildren;
7575-7674 bool matching = childTerms.Length == 0;
77757876 //We need to check the children and should any child match this matches as well
7979- if (hasFilterableChildren != null)
7777+ if (filterable is IHasFilterableChildren hasFilterableChildren)
8078 {
8179 foreach (IFilterable child in hasFilterableChildren.FilterableChildren)
8280 matching |= match(child, childTerms, searchActive);
+1-8
osu.Framework/Graphics/Primitives/RectangleF.cs
···131131 /// <returns>This method returns true if obj is a <see cref="RectangleF"/> and its X, Y, Width, and Height properties are equal to the corresponding properties of this <see cref="RectangleF"/>; otherwise, false.</returns>
132132 /// <param name="obj">The <see cref="System.Object"/> to test.</param>
133133 /// <filterpriority>1</filterpriority>
134134- public override bool Equals(object obj)
135135- {
136136- if (!(obj is RectangleF))
137137- return false;
138138-139139- RectangleF ef = (RectangleF)obj;
140140- return ef.X == X && ef.Y == Y && ef.Width == Width && ef.Height == Height;
141141- }
134134+ public override bool Equals(object obj) => obj is RectangleF rec && Equals(rec);
142135143136 /// <summary>Tests whether two <see cref="RectangleF"/> structures have equal location and size.</summary>
144137 /// <returns>This operator returns true if the two specified <see cref="RectangleF"/> structures have equal <see cref="X"/>, <see cref="Y"/>, <see cref="Width"/>, and <see cref="Height"/> properties.</returns>
+1-8
osu.Framework/Graphics/Primitives/RectangleI.cs
···9696 /// <returns>This method returns true if obj is a <see cref="RectangleI"/> and its X, Y, Width, and Height properties are equal to the corresponding properties of this <see cref="RectangleI"/>; otherwise, false.</returns>
9797 /// <param name="obj">The <see cref="T:System.Object"/> to test. </param>
9898 /// <filterpriority>1</filterpriority>
9999- public override bool Equals(object obj)
100100- {
101101- if (!(obj is RectangleI))
102102- return false;
103103-104104- RectangleI ef = (RectangleI)obj;
105105- return ef.X == X && ef.Y == Y && ef.Width == Width && ef.Height == Height;
106106- }
9999+ public override bool Equals(object obj) => obj is RectangleI rec && Equals(rec);
107100108101 /// <summary>Tests whether two <see cref="RectangleI"/> structures have equal location and size.</summary>
109102 /// <returns>This operator returns true if the two specified <see cref="RectangleI"/> structures have equal <see cref="X"/>, <see cref="Y"/>, <see cref="Width"/>, and <see cref="Height"/> properties.</returns>
+1-6
osu.Framework/Graphics/Sprites/FontUsage.cs
···100100101101 public bool Equals(FontUsage other) => string.Equals(Family, other.Family) && string.Equals(Weight, other.Weight) && Italics == other.Italics && Size.Equals(other.Size) && FixedWidth == other.FixedWidth;
102102103103- public override bool Equals(object obj)
104104- {
105105- if (ReferenceEquals(null, obj)) return false;
106106-107107- return obj is FontUsage other && Equals(other);
108108- }
103103+ public override bool Equals(object obj) => obj is FontUsage other && Equals(other);
109104110105 public override int GetHashCode()
111106 {
+1-6
osu.Framework/Graphics/Sprites/IconUsage.cs
···72727373 public bool Equals(IconUsage other) => Icon == other.Icon && string.Equals(Family, other.Family) && string.Equals(Weight, other.Weight);
74747575- public override bool Equals(object obj)
7676- {
7777- if (ReferenceEquals(null, obj)) return false;
7878-7979- return obj is IconUsage other && Equals(other);
8080- }
7575+ public override bool Equals(object obj) => obj is IconUsage other && Equals(other);
81768277 public override int GetHashCode()
8378 {