Exemple #1
0
        /* Function: IsOn
         * Returns whether the iterator is on the passed <XMLElementType>, tag type, and <TagForm>.  This function must be
         * used with <XMLElementType.Tag> since that's the only type where it's relevant.  <XMLElementType> is passed anyway
         * for consistency with other IsOn() functions.
         */
        public bool IsOn(XMLElementType elementType, string tagType, TagForm tagForm)
        {
                        #if DEBUG
            if (elementType != XMLElementType.Tag)
            {
                throw new Exception("Can't call IsOn() with a tag form unless the element type is an XML tag.");
            }
                        #endif

            return(IsOnTag(tagType, tagForm));
        }
Exemple #2
0
 /* Function: IsOn
  * Returns whether the iterator is on the passed <XMLElementType>
  */
 public bool IsOn(XMLElementType elementType)
 {
     return(type == elementType);
 }