Пример #1
0
        public static AcColumnInfo Parse(string InString)
        {
            AcColumnInfo info = new AcColumnInfo();

            CsvCursor csv = new CsvCursor(InString);

            // ColumnName
            csv.NextValue();
            info.ColumnName = csv.ItemValue;

            // HeadingText
            csv.NextValue();
            info.HeadingText = csv.ItemValue;

            // AllowedValues
            csv.NextValue();
            if (csv.ItemValue != null)
            {
                info.AllowedValues =
                    Stringer.ParseSerializedListOfString(csv.ItemValue);
            }

            // ErrorText
            csv.NextValue();
            info.ErrorText = csv.ItemValue;

            return(info);
        }