/// <stable>ICU 3.8</stable> public override bool Equals(object rhs) { if (this == rhs) { return(true); } if (rhs == null || GetType() != rhs.GetType()) { return(false); } PluralFormat pf = (PluralFormat)rhs; return (Utility.ObjectEquals(ulocale, pf.ulocale) && Utility.ObjectEquals(pluralRules, pf.pluralRules) && Utility.ObjectEquals(msgPattern, pf.msgPattern) && Utility.ObjectEquals(numberFormat, pf.numberFormat)); }
/// <summary> /// Returns true if this equals the provided <see cref="PluralFormat"/>. /// </summary> /// <param name="rhs">the PluralFormat to compare against</param> /// <returns>true if this equals <paramref name="rhs"/></returns> /// <stable>ICU 3.8</stable> public virtual bool Equals(PluralFormat rhs) { return(Equals((Object)rhs)); }