public static LinkElement Stylesheet(string hrefOrCode) { var result = new LinkElement { Rel = "stylesheet", Type = "text/css" }; if (hrefOrCode.Contains("{")) { result.Value = hrefOrCode; result.Rel = ""; result.Name = "style"; } else { result.Href = hrefOrCode; } return result; }
public static LinkElement Stylesheet(string hrefOrCode) { var result = new LinkElement { Rel = "stylesheet", Type = "text/css" }; if (hrefOrCode.Contains("{")) { result.Value = hrefOrCode; result.Rel = ""; result.Name = "style"; } else { result.Href = hrefOrCode; } return(result); }
public static LinkElement stylesheet(string hrefOrCode) { return(LinkElement.Stylesheet(hrefOrCode)); }