コード例 #1
0
        public void Save(string filePath, PlistDocumentType format)
        {
            FileStream stream = new FileStream(filePath, FileMode.OpenOrCreate, FileAccess.Write);

            Save(stream, format);
            stream.Close();
        }
コード例 #2
0
 public bool CanSerialize(PlistDocumentType type)
 {
     if (type == PlistDocumentType.Binary)
     {
         return(true);
     }
     return(false);
 }
コード例 #3
0
 public bool CanSerialize(PlistDocumentType type)
 {
     foreach (KeyValuePair <string, IPlistElement> val in _value)
     {
         if (!val.Value.CanSerialize(type))
         {
             return(false);
         }
     }
     return(true);
 }
コード例 #4
0
 public void Save(Stream stream, PlistDocumentType format)
 {
     if (format == PlistDocumentType.Binary)
     {
         SaveBinary(stream);
     }
     else if (format == PlistDocumentType.Xml)
     {
         SaveXml(stream);
     }
 }
コード例 #5
0
 public bool CanSerialize(PlistDocumentType type)
 {
     for (int i = 0; i < _value.Length; i++)
     {
         if (!_value[i].CanSerialize(type))
         {
             return(false);
         }
     }
     return(true);
 }
コード例 #6
0
 public bool CanSerialize(PlistDocumentType type)
 {
     return(true);
 }