Пример #1
0
        public static BoundarySeparator CreateBoundarySeparator(string Content, bool IsLeft)
        {
            var item = new BoundarySeparator();

            item.IsLeft = IsLeft;
            item.Value  = Content;
            return(item);
        }
Пример #2
0
        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);
        }