Exemplo n.º 1
0
        protected GSEnum(DBCharType type, string values)
        {
            Type = type;
            var vlist = values.Split('|');

            Size = vlist.Max(v => v.Trim().Length);
            if (Size < 1)
            {
                Size = 1;
            }
            Values = vlist;
        }
Exemplo n.º 2
0
 public TEnum(DBCharType type, string values)
 {
     Type = type;
     var vlist = values.Split('|');
     Size = vlist.Max(v=>v.Trim().Length);
     if (Size<1) Size = 1;
     Values = vlist;
 }