Example #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());
        }
Example #2
0
 public DynamicPList(byte[] buffer)
 {
     RootNode = PListUtils.Load(buffer);
 }
Example #3
0
 public DynamicPList(string filePath)
 {
     RootNode = PListUtils.Load(filePath);
 }
Example #4
0
 public DynamicPList(Stream stream)
 {
     RootNode = PListUtils.Load(stream);
 }