public static bool IsEqual(this StringCollection @this, StringCollection other) { if (!(@this != null && other != null && @this.Count == other.Count && @this.IsReadOnly == other.IsReadOnly && @this.IsSynchronized == other.IsSynchronized)) { return(false); } return(@this.CheckSequenceEquals(other)); }
public static void IsEqual(this StringCollection @this, StringCollection other, bool isSamePlatform) { if (@this == null && other == null) { return; } Assert.NotNull(@this); Assert.NotNull(other); Assert.Equal(@this.Count, other.Count); Assert.Equal(@this.IsReadOnly, other.IsReadOnly); Assert.Equal(@this.IsSynchronized, other.IsSynchronized); @this.CheckSequenceEquals(other, isSamePlatform); }