【Unity3D游戏开发】System.Collections.Generic.ICollection`1.CopyTo 错误 (二三)
来源:互联网 发布:分页查询sql语句 编辑:程序博客网 时间:2024/06/04 19:32
使用Unity,编辑器模式没有问题,iOS上报错误
System.Collections.Generic.ICollection`1.CopyTo
错误位置:
string[] receipts = PlayerPrefsEx.GetStringArray("unfinished_iap_receipt");List<string> unFinIAPReceipts = new List<string>(receipts);
出错原因:
Most of Linq extension methods from Linq for Collections are not working with IEnumerables on iOS since they require AOT runtime compiler which is not supported.However there is a Linq for iOS library on Asset Store that is similar to Linq but doesn't require a runtime compiler. So you can use it on iOS and ToArray() method will work with this library.
List<string> ls = new List<string>(receipts);
解决办法:
使用for循环赋值吧,虽然麻烦了点
0 0
- 【Unity3D游戏开发】System.Collections.Generic.ICollection`1.CopyTo 错误 (二三)
- System.Collections.Generic
- System.Collections、System.Collections.Generic、System.Collections.Specialized
- System.Collections.Generic 命名空间
- System.Collections.Generic命名空间
- System.Collections.Generic 命名空间
- System.Collections.Generic 命名空间
- unity3D游戏开发三之unity编辑器二
- unity3D游戏开发三之unity编辑器二
- unity3D游戏开发三之unity编辑器二
- 【Unity3D游戏开发】基础知识之Tags和Layers (三二)
- unity3D游戏开发三之unity编辑器二
- C#学习之System.Collections.Generic 与 System.Collections 记录
- 为什么要使用using System.Collections.Generic;?
- System.Collections.Generic 命名空间1
- System.Collections.Generic 命名空间接口、结构
- System.Collections.Generic.IEnumerable<T>接口
- System.Collections.ArrayList(二)
- MySQL自带压力测试工具mysqlslap基本使用
- Android:系统自己附带的图片
- centos7中控制节点配置网络
- 浅谈jsp、freemarker、velocity区别
- IT优秀书籍收集下载
- 【Unity3D游戏开发】System.Collections.Generic.ICollection`1.CopyTo 错误 (二三)
- Pluto中文文本分析能力的数据挖掘平台
- JAVA 创建文件和文件夹,删除文件和文件夹,复制文件和文件夹,移动文件和文件夹的实用工具类
- 机器学习笔记——神经网络的实现
- java.sql.SQLException: No suitable driver found for
- 8个最佳PHP库
- maven引入json各种版本
- Eclipse选中变量名,相同变量都变色显示 的设置
- Maven部署构件至远程仓库