Imported Upstream version 5.2.0.175

Former-commit-id: bb0468d0f257ff100aa895eb5fe583fb5dfbf900
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2017-06-07 13:16:24 +00:00
parent 4bdbaf4a88
commit 966bba02bb
8776 changed files with 346420 additions and 149650 deletions

View File

@ -41,45 +41,45 @@ namespace System.ServiceModel.Description
{
}
public PolicyAssertionCollection (IEnumerable<XmlElement> list)
: base (new List<XmlElement> (list))
public PolicyAssertionCollection (IEnumerable<XmlElement> elements)
: base (new List<XmlElement> (elements))
{
}
[MonoTODO]
public bool Contains (string name, string ns)
public bool Contains (string localName, string namespaceUri)
{
foreach (XmlElement el in this)
if (el.LocalName == name && el.NamespaceURI == ns)
if (el.LocalName == localName && el.NamespaceURI == namespaceUri)
return true;
return false;
}
[MonoTODO]
public XmlElement Find (string name, string ns)
public XmlElement Find (string localName, string namespaceUri)
{
foreach (XmlElement el in this)
if (el.LocalName == name && el.NamespaceURI == ns)
if (el.LocalName == localName && el.NamespaceURI == namespaceUri)
return el;
return null;
}
[MonoTODO]
public Collection<XmlElement> FindAll (string name, string ns)
public Collection<XmlElement> FindAll (string localName, string namespaceUri)
{
Collection<XmlElement> ret =
new Collection<XmlElement> ();
foreach (XmlElement el in this)
if (el.LocalName == name && el.NamespaceURI == ns)
if (el.LocalName == localName && el.NamespaceURI == namespaceUri)
ret.Add (el);
return ret;
}
[MonoTODO]
public XmlElement Remove (string name, string ns)
public XmlElement Remove (string localName, string namespaceUri)
{
foreach (XmlElement el in this)
if (el.LocalName == name && el.NamespaceURI == ns) {
if (el.LocalName == localName && el.NamespaceURI == namespaceUri) {
Remove (el);
return el;
}
@ -87,9 +87,9 @@ namespace System.ServiceModel.Description
}
[MonoTODO]
public Collection<XmlElement> RemoveAll (string name, string ns)
public Collection<XmlElement> RemoveAll (string localName, string namespaceUri)
{
Collection<XmlElement> list = FindAll (name, ns);
Collection<XmlElement> list = FindAll (localName, namespaceUri);
foreach (XmlElement el in list)
Remove (el);
return list;