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