示例#1
0
        public static object Parse(this XmlPropertyListReader item, string text)
        {
            var doc = XDocument.Parse(text);

            return(item.ParsePropertyList(doc));
        }
示例#2
0
        public static IReadOnlyDictionary <string, object> LoadReadOnlyDictionaryFrom(this XmlPropertyListReader item, string path)
        {
            var obj = item.LoadFrom(path);

            var result = obj as Dictionary <string, object>;

            if (obj is null)
            {
                throw new InvalidDataException();
            }

            return(result);
        }
示例#3
0
        public static object LoadFrom(this XmlPropertyListReader item, string path)
        {
            var doc = XDocument.Load(path);

            return(item.ParsePropertyList(doc));
        }