1
我在使用Silverlight 3存根使用WCF服务,我需要的一个参数是System.Collections.ObjectModel.ObservableCollection
。 但是下面的代码是抛出一个NotImplementedException
:System.Collections.ObjectModel.ObservableCollection仅在Monotouch中部分实现?
ItemType[] aItemTypes = ...;
ObservableCollection<ItemType> aTypes = null;
if(aItemTypes != null)
{
aTypes = new ObservableCollection<ItemType> (aItemTypes);
}
如果我使用foreach循环添加的所有条目手动而不是使用需要一个枚举的构造,它的工作原理。有没有理由为什么构造函数丢失或被遗忘?
mono-2-10已经更新(对于Mono for Android,其他人必须具有相同的条件),因此此方法的*实现*将成为下一个MonoTouch 5.1.x版本的一部分。 – poupou 2012-01-10 18:55:20