using System;
using System.Collections.ObjectModel;
using System.Linq;
using System.Threading;
using System.Collections.Generic;
public sealed class class1: ObservableCollection<CalendarDateRange>
{
//.......
}错误:类型“System.Collections.ObjectModel.ObservableCollection<T>”同时存在于“C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.dll”和“C:\Program Files\Microsoft Silverlight\4.0.50826.0\System.Windows.dll”中 这个怎么解决啊?
using System.Collections.ObjectModel;
using System.Linq;
using System.Threading;
using System.Collections.Generic;
public sealed class class1: ObservableCollection<CalendarDateRange>
{
//.......
}错误:类型“System.Collections.ObjectModel.ObservableCollection<T>”同时存在于“C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.dll”和“C:\Program Files\Microsoft Silverlight\4.0.50826.0\System.Windows.dll”中 这个怎么解决啊?
{
//.......
}
这样也报错的
项目中引用了system.dll 和system.windows.dll
是引用了...\Microsoft Silverlight\4.0.50826.0\System.Windows.dll,但我其他地方要用到这个程序集,不想移除掉它。有没有别的办法呢
直接使用命名空间System.XXXX声明就不会报错了