/// <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); }
/// <summary> /// Adds the tag using a TemplateTag object. /// </summary> /// <param name="templateTag">Template tag.</param> public void AddTag(TemplateTag templateTag) { _templateTags[templateTag.Tag] = templateTag; }