예제 #1
0
 public bool Equals(NavigationBarItem?other)
 {
     return(other != null &&
            Text == other.Text &&
            Glyph == other.Glyph &&
            Bolded == other.Bolded &&
            Grayed == other.Grayed &&
            Indent == other.Indent &&
            ChildItems.SequenceEqual(other.ChildItems) &&
            Spans.SequenceEqual(other.Spans) &&
            EqualityComparer <TextSpan?> .Default.Equals(NavigationSpan, other.NavigationSpan));
 }