17 using erminas.SmartAPI.CMS.Converter;
19 namespace erminas.SmartAPI.CMS.Project.ContentClasses.Elements
21 [EnumConversionHelper]
22 public static class ShapeUtils
24 public static string ToRQLString(
this Shape value)
37 throw new ArgumentException(
string.Format(
"Unknown {0} value: {1}", typeof (
Shape).Name, value));
41 public static Shape ToShape(
this string value)
43 if (
string.IsNullOrEmpty(value))
47 switch (value.ToLowerInvariant())
56 throw new ArgumentException(
string.Format(
"Cannot convert string value {1} to {0}",
57 typeof (
Shape).Name, value));