public static MvcHtmlString RenderPicture(this HtmlHelper helper, IPictureElement picture) { return(new MvcHtmlString(picture.ToString())); }
/// <summary> /// Returns the html of picture element with sources and attributes. /// </summary> /// <param name="helper"></param> /// <param name="picture"></param> /// <returns></returns> public static IHtmlString RenderPicture(this HtmlHelper helper, IPictureElement picture) { return new HtmlString(picture.ToString()); }
/// <summary> /// Convert to HtmlString /// </summary> /// <param name="picture"></param> /// <returns>Picture element as HtmlString</returns> public static IHtmlString Html(this IPictureElement picture) { return(new HtmlString(picture.ToString())); }
public static void RenderHere(this IPictureElement picture) { HttpContext.Current.Response.Output.WriteLine(picture.ToString()); }