public TagType(TagOption startOption, TagOption endOption) { this.Option = startOption.MainOption(); this.Format = startOption.Format; this.StartOption = startOption; this.EndOption = endOption; }
public static bool Matches(TagOption start, TagOption end) { return(start.Position == TagOptionPosition.Start && end.Position == TagOptionPosition.End && start.MainOption().Equals(end.MainOption())); }