public static Type GetTypeFromTypeString()

in Arriba/Arriba/Model/Column/ColumnFactory.cs [110:158]


        public static Type GetTypeFromTypeString(string columnDetailsType)
        {
            if (String.IsNullOrEmpty(columnDetailsType)) return null;

            switch(columnDetailsType.ToLowerInvariant())
            {
                case "bool":
                case "boolean":
                    return typeof(bool);
                case "byte":
                    return typeof(byte);
                case "short":
                case "int16":
                    return typeof(short);
                case "int":
                case "int32":
                    return typeof(int);
                case "long":
                case "int64":
                    return typeof(long);
                case "float":
                case "single":
                    return typeof(float);
                case "double":
                    return typeof(double);
                case "ushort":
                case "uint16":
                    return typeof(ushort);
                case "uint":
                case "uint32":
                    return typeof(uint);
                case "ulong":
                case "uint64":
                    return typeof(ulong);
                case "datetime":
                    return typeof(DateTime);
                case "guid":
                    return typeof(Guid);
                case "timespan":
                    return typeof(TimeSpan);
                case "string":
                case "json":
                case "html":
                case "stringset":
                    return typeof(string);
                default:
                    return null;
            }
        }