示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TemplateSegment"/> class.
 /// </summary>
 /// <param name="type">The type of the segment.</param>
 /// <param name="content">The content of the segment.</param>
 public TemplateSegment(TemplateSegmentType type, string content)
 {
     Type = type;
     Content = content;
 }
示例#2
0
 private bool IsInsideBlock(TemplateSegmentType type)
 {
     return type != TemplateSegmentType.PlainText;
 }