编译器无法识别System.Runtime.Serialization.DataContractSerializer C#
作者:互联网
我尝试使用System.Runtime.Serialization.DataContractSerializer,但出现编译器错误:
“The type or namespace ‘DataContractSerializer’ does not exist in the namespace ‘System.Runtime.Serialization’ “
是什么导致此错误?
解决方法:
在您的项目中添加对System.Runtime.Serialization程序集的引用.
标签:datacontract,datacontractserializer,c,xmlserializer 来源: https://codeday.me/bug/20191119/2038568.html