Пример #1
0
        public static byte[] ToByteArray(Adohope.Shared.PList.DynamicPList x)
        {
            //todo: Move this logic to PList class
            MemoryStream ms = new MemoryStream();

            PListUtils.Save(ms, x.RootNode, PListNet.PListFormat.Binary);
            return(ms.ToArray());
        }
Пример #2
0
 public DynamicPList(byte[] buffer)
 {
     RootNode = PListUtils.Load(buffer);
 }
Пример #3
0
 public DynamicPList(string filePath)
 {
     RootNode = PListUtils.Load(filePath);
 }
Пример #4
0
 public DynamicPList(Stream stream)
 {
     RootNode = PListUtils.Load(stream);
 }