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