FluentCassandra.Types.CassandraType.Parse C# (CSharp) Method

Parse() private method

private Parse ( string dbType ) : Type
dbType string
return System.Type
        private Type Parse(string dbType)
        {
            Type type;

            switch (dbType.Substring(dbType.LastIndexOf('.') + 1).ToLower())
            {
                case "asciitype": type = typeof(AsciiType); break;
                case "booleantype": type = typeof(BooleanType); break;
                case "bytestype": type = typeof(BytesType); break;
                case "datetype": type = typeof(DateType); break;
                case "decimaltype": type = typeof(DecimalType); break;
                case "doubletype": type = typeof(DoubleType); break;
                case "floattype": type = typeof(FloatType); break;
                case "int32type": type = typeof(Int32Type); break;
                case "integertype": type = typeof(IntegerType); break;
                case "lexicaluuidtype": type = typeof(LexicalUUIDType); break;
                case "longtype": type = typeof(LongType); break;
                case "timeuuidtype": type = typeof(TimeUUIDType); break;
                case "utf8type": type = typeof(UTF8Type); break;
                case "uuidtype": type = typeof(UUIDType); break;
                case "compositetype": type = typeof(CompositeType); break;
                case "dynamiccompositetype": type = typeof(DynamicCompositeType); break;
                case "countercolumntype": type = typeof(CounterColumnType); break;
                case "reversedtype": type = typeof(ReversedType); break;
                default: throw new CassandraException("Type '" + _dbType + "' not found.");
            }

            return type;
        }