Exemple #1
0
 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;
 }
Exemple #2
0
        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);
        }
Exemple #3
0
 public static LinkElement stylesheet(string hrefOrCode)
 {
     return(LinkElement.Stylesheet(hrefOrCode));
 }