private static void Collect(HashSet <XNamespace> result, ParameterDef element) { result.AddXNamespaceOfXName(element.Name); foreach (var p in element.Properties) { Collect(result, p); } }
private static void Write(XmlWriter writer, ParameterDef element) { writer.WriteStartElement(Psf.ParameterDef.LocalName, Psf.Namespace.NamespaceName); writer.WriteAttributeString("name", element.Name.ToQName(writer)); foreach (var p in element.Properties) { Write(writer, p); } writer.WriteEndElement(); }
public Capabilities Add(ParameterDef element) { return(new Capabilities(_features, _parameters.Add(element), _properties, _declaredNamespaces)); }