/// <summary> /// Returns a CSS code representation of the property. /// </summary> /// <returns>A string that contains the code.</returns> public String ToCss() { var value = _name + ":" + _value.ToCss(); if (_important) { value += " !important"; } return(value); }
/// <summary> /// Returns a CSS code representation of the property. /// </summary> /// <returns>A string that contains the code.</returns> public String ToCss() { return(String.Concat(_name, ":", _value.ToCss(), _important ? "!important" : String.Empty)); }