17 using erminas.SmartAPI.CMS.Converter;
19 namespace erminas.SmartAPI.CMS.Project.ContentClasses.Elements
21 [EnumConversionHelper]
22 public static class HtmlTargetUtils
24 public static HtmlTarget ToHtmlTarget(
this string value)
26 if (
string.IsNullOrEmpty(value))
30 switch (value.ToUpperInvariant())
41 throw new ArgumentException(
string.Format(
"Cannot convert string value {1} to {0}",
46 public static string ToRQLString(
this HtmlTarget value)
61 throw new ArgumentException(
string.Format(
"Unknown {0} value: {1}", typeof (
HtmlTarget).Name, value));