public BbTag(string name, string openTagTemplate, string closeTagTemplate, bool autoRenderContent, BbTagClosingStyle tagClosingClosingStyle, Func <string, string> contentTransformer, params BbAttribute[] attributes) : this(name, openTagTemplate, closeTagTemplate, autoRenderContent, tagClosingClosingStyle, contentTransformer, false, attributes) { }
public BbTag(string name, string openTagTemplate, string closeTagTemplate, bool autoRenderContent, BbTagClosingStyle tagClosingClosingStyle, Func <string, string> contentTransformer, bool enableIterationElementBehavior, params BbAttribute[] attributes) { if (name == null) { throw new ArgumentNullException(nameof(name)); } if (openTagTemplate == null) { throw new ArgumentNullException(nameof(openTagTemplate)); } if (closeTagTemplate == null) { throw new ArgumentNullException(nameof(closeTagTemplate)); } if (!Enum.IsDefined(typeof(BbTagClosingStyle), tagClosingClosingStyle)) { throw new ArgumentException(nameof(tagClosingClosingStyle)); } Name = name; OpenTagTemplate = openTagTemplate; CloseTagTemplate = closeTagTemplate; AutoRenderContent = autoRenderContent; TagClosingStyle = tagClosingClosingStyle; ContentTransformer = contentTransformer; EnableIterationElementBehavior = enableIterationElementBehavior; Attributes = attributes ?? new BbAttribute[0]; }