Ejemplo n.º 1
0
        /// <summary>
        /// Replaces the token Tag with the token Value.
        /// </summary>
        /// <param name="token">Token.</param>
        /// <returns></returns>
        private string _replaceTagHandler(Match token)
        {
            TemplateTag tag = default(TemplateTag);

            if (_templateTags.TryGetValue(token.Value, out tag))
            {
                return(tag.Value);
            }
            return(string.Empty);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Adds the tag using a TemplateTag object.
 /// </summary>
 /// <param name="templateTag">Template tag.</param>
 public void AddTag(TemplateTag templateTag)
 {
     _templateTags[templateTag.Tag] = templateTag;
 }