public void Save(string filePath, PlistDocumentType format) { FileStream stream = new FileStream(filePath, FileMode.OpenOrCreate, FileAccess.Write); Save(stream, format); stream.Close(); }
public bool CanSerialize(PlistDocumentType type) { if (type == PlistDocumentType.Binary) { return(true); } return(false); }
public bool CanSerialize(PlistDocumentType type) { foreach (KeyValuePair <string, IPlistElement> val in _value) { if (!val.Value.CanSerialize(type)) { return(false); } } return(true); }
public void Save(Stream stream, PlistDocumentType format) { if (format == PlistDocumentType.Binary) { SaveBinary(stream); } else if (format == PlistDocumentType.Xml) { SaveXml(stream); } }
public bool CanSerialize(PlistDocumentType type) { for (int i = 0; i < _value.Length; i++) { if (!_value[i].CanSerialize(type)) { return(false); } } return(true); }
public bool CanSerialize(PlistDocumentType type) { return(true); }