readXml() приватный статический Метод

private static readXml ( XmlDocument xml ) : object
xml System.Xml.XmlDocument
Результат object
Пример #1
0
        // Token: 0x06000105 RID: 261 RVA: 0x00006A0C File Offset: 0x00004C0C
        public static object readPlist(Stream stream, plistType type)
        {
            if (type == plistType.Auto)
            {
                type = Plist.getPlistType(stream);
                stream.Seek(0L, SeekOrigin.Begin);
            }
            object result;

            if (type == plistType.Binary)
            {
                using (BinaryReader binaryReader = new BinaryReader(stream))
                {
                    byte[] data = binaryReader.ReadBytes((int)binaryReader.BaseStream.Length);
                    result = Plist.readBinary(data);
                    return(result);
                }
            }
            XmlDocument xmlDocument = new XmlDocument();

            xmlDocument.XmlResolver = null;
            xmlDocument.Load(stream);
            result = Plist.readXml(xmlDocument);
            return(result);
        }
 public static object readPlist(Stream stream, plistType type)
 {
     if (type == plistType.Auto)
     {
         type = Plist.getPlistType(stream);
         stream.Seek(0L, SeekOrigin.Begin);
     }
     if (type == plistType.Binary)
     {
         using (BinaryReader binaryReader = new BinaryReader(stream))
             return(Plist.readBinary(binaryReader.ReadBytes((int)binaryReader.BaseStream.Length)));
     }
     else
     {
         XmlDocument xml = new XmlDocument();
         xml.XmlResolver = (XmlResolver)null;
         Stream inStream = stream;
         xml.Load(inStream);
         return(Plist.readXml(xml));
     }
 }