private static PlatformFeatureBaseData GetPlatformFeatureData(XElement featureElement)
        {
            PlatformFeatureType type = featureElement.GetEnum <PlatformFeatureType>("type");

            XElement propertiesElement = featureElement.Element("properties");

            Dictionary <string, string> properties = null;

            if (propertiesElement != null)
            {
                properties = GetPropertiesData(propertiesElement);
            }

            return(new PlatformFeatureBaseData(type, properties));
        }
示例#2
0
 public PlatformFeatureBaseData(PlatformFeatureType type, Dictionary <string, string> properties)
 {
     Type       = type;
     Properties = properties;
 }
 public PlatformFeatureBaseData(PlatformFeatureType type, Dictionary<string, string> properties)
 {
     Type = type;
     Properties = properties;
 }