Error =" System.Runtime.Serialization.InvalidDataContractException:类型'System.Collections.ObjectModel.ObservableCollection`1 [T]'无法导出为架构类型,因为它是开放的泛型类型。如果所有通用参数类型都是实际类型,则只能导出泛型类型。" 合同= < ServiceContract()> P Error="System.Runtime.Serialization.InvalidDataContractException: Type 'System.Collections.ObjectModel.ObservableCollection`1[T]' cannot be exported as a schema type because it is an open generic type. You can only export a generic type if all its generic parameter types are actual types."Contract=
<ServiceContract()> P ublic 接口 ITestServer < OperationContract()> < ServiceKnownType(GetType(ObservableCollection(Of)))> _ ublic Interface ITestServer<OperationContract()> <ServiceKnownType(GetType(ObservableCollection(Of )))> _
函数cGetSQLDataSources()As ObservableCollection(Of DarwinObjectModel.DarwinObjectModel.SQLDataSource) 另一个函数在接口返回数据集没有问题(如果我注释掉流氓函数) 结束 接口 Interface
更多推荐
使用服务中的ObservableCollection的System.Runtime.Serialization.InvalidDataContractExcep
发布评论