public override bool Equals(object obj) { TagDirective tagDirective = obj as TagDirective; return(tagDirective != null && handle.Equals(tagDirective.handle) && prefix.Equals(tagDirective.prefix)); }
protected IEnumerable<ParsingEvent> DocumentWithCustomTags(params ParsingEvent[] events) { var parts = FooTag.Split(' '); var tags = new TagDirective(parts[1], parts[2]); return Wrap(events, DocumentStart(Explicit, null, tags), DocumentEnd(Implicit)); }
/// <summary> /// Determines whether the specified System.Object is equal to the current System.Object. /// </summary> /// <param name="obj">The System.Object to compare with the current System.Object.</param> /// <returns> /// true if the specified System.Object is equal to the current System.Object; otherwise, false. /// </returns> public override bool Equals(object obj) { TagDirective other = obj as TagDirective; return(other != null && handle.Equals(other.handle) && prefix.Equals(other.prefix)); }
public override bool Equals(object obj) { TagDirective directive = obj as TagDirective; return(((directive != null) && this.handle.Equals(directive.handle)) && this.prefix.Equals(directive.prefix)); }