【问题标题】:Realm Xamarin: The type or namespace name 'IList<>' could not be found领域 Xamarin:找不到类型或命名空间名称“IList<>”
【发布时间】:2017-11-26 09:28:08
【问题描述】:

公共 IList 坐标 { get; }

错误“找不到类型或命名空间名称 'IList'(您是否缺少 using 指令或程序集引用?) (CS0246) (TouristiKo.Droid)”

【问题讨论】:

  • 我们需要更少的信息来帮助您。您是否尝试过使用 RealmList 之类的东西? IList 在“使用 System.Collections;”中实现

标签: xamarin realm


【解决方案1】:

指定列表的类型

public IList<PointOrWhatever> coordinates { get; }

【讨论】:

  • 另外,请确保在您的 using 语句中添加 using System.Collections.Generic;
猜你喜欢
  • 1970-01-01
  • 2018-06-01
  • 1970-01-01
  • 2017-10-09
  • 1970-01-01
  • 1970-01-01
  • 2017-07-12
  • 2011-05-13
相关资源
最近更新 更多