예제 #1
0
        // Parses xml formatted achievement percentages to an object.
        public static Tuple <string, double> ParseAchievementPercentage(XElement xml)
        {
            if (xml == null)
            {
                return(null);
            }

            ElementParser parser = new ElementParser(xml);

            Tuple <string, double> result = new Tuple <string, double>(parser.GetAttributeString("name"), parser.GetAttributeDouble("percent"));

            return(result);
        }