“System.Runtime.Serialization.InvalidDataContractException”类型的异常在 System.Runtime.Serialization.ni.dll 中发生,但未在用户代码中进行处理
其他信息: Type 'PhoneApp2.inf' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. Alternatively, you can ensure that the type is public and has a parameterless constructor - all public members of the type will then be serialized, and no attributes will be required.
这个是什么意思
------解决方案--------------------
'PhoneApp2.inf'这个怎么成了TYPE了,代码的问题吧.
------解决方案--------------------
selectedItem是什么类型,它无法序列化造成的错误。