public override bool Equals(object obj)
        {
            TagDirective tagDirective = obj as TagDirective;

            return(tagDirective != null && handle.Equals(tagDirective.handle) && prefix.Equals(tagDirective.prefix));
        }
Exemplo n.º 2
0
 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));
 }
Exemplo n.º 3
0
        /// <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));
        }
Exemplo n.º 4
0
        public override bool Equals(object obj)
        {
            TagDirective directive = obj as TagDirective;

            return(((directive != null) && this.handle.Equals(directive.handle)) && this.prefix.Equals(directive.prefix));
        }