17 using erminas.SmartAPI.CMS.Converter;
18 using erminas.SmartAPI.Exceptions;
20 namespace erminas.SmartAPI.CMS.Project.ContentClasses.Elements
22 [EnumConversionHelper]
23 public static class SpecialDataFieldFormatUtils
27 var serverVersion = obj.Session.ServerVersion;
37 var version =
new Version(11, 0);
38 if (serverVersion < version)
42 "Cannot set {0} to value {1} for server versions older than {2}",
43 RedDotAttributeDescription.GetDescriptionForElement(
44 "eltcolumniotype"), value.ToString(), version));
48 throw new ArgumentException(
string.Format(
"Unknown {0} value: {1}",
70 throw new ArgumentException(
string.Format(
"Unknown {0} value: {1}",
77 if (
string.IsNullOrEmpty(value))
81 switch (value.ToUpperInvariant())
97 throw new ArgumentException(
string.Format(
"Cannot convert string value {1} to {0}",