public static BoundarySeparator CreateBoundarySeparator(string Content, bool IsLeft) { var item = new BoundarySeparator(); item.IsLeft = IsLeft; item.Value = Content; return(item); }
public static BoundarySeparator CreateBoundarySeparator(Boundary boundary, bool IsLeft) { var item = new BoundarySeparator(); item.IsLeft = IsLeft; item.Value = IsLeft ? boundary.Left : boundary.Right; item.Name = boundary.Name; return(item); }