【发布时间】:2015-02-21 05:22:30
【问题描述】:
我正在尝试将一些现有的 C# 代码转换为可移植类库项目,配置文件 111。这是我坚持的代码:
[System.Xml.Serialization.XmlAnyAttributeAttribute()]
public System.Xml.XmlAttribute[] OtherAttributes
{
get
{
return this._otherAttributes;
}
set
{
this._otherAttributes = value;
}
}
在 PCL 土地上相当于什么?我看到XmlSerializer 编译得很好。 XmlAnyAttributeAttribute 存在,但 XmlAttribute 类型不存在。
【问题讨论】:
标签: c# portable-class-library xmlserializer xml-attribute