17 using erminas.SmartAPI.CMS.Converter;
19 namespace erminas.SmartAPI.CMS.Project.ContentClasses.Elements
21 [EnumConversionHelper]
22 public static class ListTypeUtils
24 public static ListType ToListType(
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 ListType type)
49 return "issupplement";
53 throw new ArgumentException(
string.Format(
"Unknown {0} value: {1}", typeof (
ListType).Name, type));