/// <inheritdoc />
 public BlockDocumentItem(CharacterLocation location,
                          BlockDocumentProviderFunction action,
                          string value,
                          IEnumerable <ITokenOption> tagCreationOptions) : base(location, value, tagCreationOptions)
 {
     _action = action;
 }
示例#2
0
 /// <inheritdoc />
 public BlockRegexDocumentItemProvider(Regex tagOpen, Regex tagClose, BlockDocumentProviderFunction action) : base(tagOpen, tagClose)
 {
     _action = action;
 }
示例#3
0
 /// <inheritdoc />
 public BlockDocumentItem(BlockDocumentProviderFunction action, string value)
 {
     _action = action;
     Value   = value;
 }
示例#4
0
 /// <summary>
 ///		Creates a new Block
 /// </summary>
 /// <param name="tagOpen">Should contain full tag like <code>#Anything</code> excluding the brackets and any parameter</param>
 /// <param name="tagClose">Should contain full tag like <code>/Anything</code> excluding the brackets and any parameter</param>
 /// <param name="action"></param>
 public BlockDocumentItemProvider(string tagOpen, string tagClose, BlockDocumentProviderFunction action)
     : base(tagOpen, tagClose)
 {
     _action = action;
 }