internal override String SerializeValue(IEnumerable <CSSProperty> properties) { if (!IsComplete(properties)) { return(String.Empty); } var values = new List <String>(); var width = _leftWidth.SerializeValue(); var style = _leftStyle.SerializeValue(); var color = _leftColor.SerializeValue(); if (width == _topWidth.SerializeValue() && width == _bottomWidth.SerializeValue() && width == _rightWidth.SerializeValue()) { values.Add(width); } if (style == _topWidth.SerializeValue() && style == _bottomWidth.SerializeValue() && style == _rightWidth.SerializeValue()) { values.Add(style); } if (color == _topWidth.SerializeValue() && color == _bottomWidth.SerializeValue() && color == _rightWidth.SerializeValue()) { values.Add(color); } return(String.Join(" ", values)); }
internal override String SerializeValue(IEnumerable <CSSProperty> properties) { if (!IsComplete(properties)) { return(String.Empty); } return(String.Format("{0} {1} {2}", _width.SerializeValue(), _style.SerializeValue(), _color.SerializeValue())); }