예제 #1
0
        private static void Collect(HashSet <XNamespace> result, ParameterDef element)
        {
            result.AddXNamespaceOfXName(element.Name);

            foreach (var p in element.Properties)
            {
                Collect(result, p);
            }
        }
예제 #2
0
        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();
        }
예제 #3
0
 public Capabilities Add(ParameterDef element)
 {
     return(new Capabilities(_features, _parameters.Add(element), _properties, _declaredNamespaces));
 }