public static DataTypeCode GetTypeCode(string type) { return (DataTypeCode)Enum.Parse(typeof(DataTypeCode), type); }