MapAround.Mapping.MapWorkspace.addFeatureLayerExtesions C# (CSharp) Method

addFeatureLayerExtesions() private method

private addFeatureLayerExtesions ( IEnumerable featureLayerExtensions, XmlDocument doc, XmlElement layerElement ) : void
featureLayerExtensions IEnumerable
doc System.Xml.XmlDocument
layerElement System.Xml.XmlElement
return void
        private void addFeatureLayerExtesions(IEnumerable<FeatureLayerExtension> featureLayerExtensions, XmlDocument doc, XmlElement layerElement)
        {
            XmlElement layer_extensions = doc.CreateElement("layer_extensions");
            layerElement.AppendChild(layer_extensions);
            foreach (var extension in featureLayerExtensions)
            {
                XmlElement extension_ellement = doc.CreateElement("layer_extension");
                layer_extensions.AppendChild(extension_ellement);
                addAttribute(doc, extension_ellement, "registration_name", extension.GetType().AssemblyQualifiedName);
                extension.addToXml(extension_ellement);
            }
        }