您可以通过在给出错误的所有调用之前添加Global来解决此问题。这已经在BAPI和Windows中发生了系统命名空间的cos。
另一个可能的解决方案是通过添加System.XML的别名并使用SysXml更改System.XML,如下所示:
using SysXml = System.Xml;
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(Form=SysXml.Schema.XmlSchemaForm.Unqualified)]
public string Type {
get {
return this.typeField;
set {
this.typeField = value;
}
}
}