Parser.ParserBase.IsTag C# (CSharp) Method

IsTag() protected method

Checks whether there is a tag in the text at the specified position, and returns its type.
protected IsTag ( string text, int position ) : Type
text string
position int
return System.Type
        protected Type IsTag(string text, int position)
        {
            foreach (Type myTagType in Tags)
            {
                MatchTagAttributeBase myMatchTagAttribute = TagBase.GetTagMatchAttribute(myTagType);
                if (myMatchTagAttribute.Match(text, position))
                    return myTagType;
            }

            return null;
        }