public bool Save() { lock (this) { try { if (m_path == null) { CLog.e("Can't save settings: path is null"); return(false); } using (Stream stream = CFileUtils.OpenWrite(m_path)) { CPlist.writeBinary(m_data, stream); return(true); } } catch (Exception e) { CLog.error(e, "Can't save settings: {0}", m_path); return(false); } } }