Cast on a "float" sequence throws InvalidCastException
来源:互联网 发布:java语言可以做什么 编辑:程序博客网 时间:2024/06/14 12:59
原因 :The Cast method only supports reference and boxing conversions. Use Select instead:
就是说cast<>()方法只支持装箱和拆箱操作,其他强制类型转换不支持。
比如:你要完成以下代码,会抛出异常的:
而这样是可以的:
- Cast on a "float" sequence throws InvalidCastException
- Defining <uniqueKey> as a "long" or "int" type throws an error on startup
- sum(cast req_num as float) 用发
- throws
- Citymaker open datasource throws a exception
- EXC_BAD_ACCESS and char pointer to float pointer cast
- 升级mvc版本时后,System.InvalidCastException: [A]System.Web.WebPages.Razor.Configuration.HostSection 无法强制转换
- [Haskell on HackerEarth] Modify Sequence
- [agc003e]Sequential operations on Sequence
- POJ4044 A Score Sequence
- A. Shooshuns and Sequence
- A. Yaroslav and Sequence
- A. Increasing Sequence
- A sequence of numbers
- A sequence of numbers
- UVa 10930 - A-Sequence
- A. Robot Sequence
- A. Robot Sequence【水题】
- discuz论坛与其它网站登录注册整合
- 如何安装并使用Windows Symbol
- Linux环境变量
- (5)设计模式笔记[原型模式]
- Java 交通灯的面向对象的分析和设计(一)
- Cast on a "float" sequence throws InvalidCastException
- Linux系统移植
- 搞ACM的你伤不起[转自RoBa]
- ArcGis flex 应用GP 实现最短路径
- android用于打开各种文件的intent
- PSTN电话通信的详细过程
- (6)设计模式笔记[Builder模式]
- (索引)Android SDK 2.2 开发环境安装
- Android Intent的几种用法全面总结