Writes the preferences to a file. The full path to the file to be written.
(string filePath)
| 117 | /// </summary> |
| 118 | /// <param name="filePath">The full path to the file to be written.</param> |
| 119 | internal void WriteToFile(string filePath) |
| 120 | { |
| 121 | using (TextWriter writer = File.CreateText(filePath)) |
| 122 | { |
| 123 | foreach (KeyValuePair<string, string> preference in this.preferences) |
| 124 | { |
| 125 | string escapedValue = preference.Value.Replace(@"\", @"\\"); |
| 126 | writer.WriteLine(string.Format(CultureInfo.InvariantCulture, "user_pref(\"{0}\", {1});", preference.Key, escapedValue)); |
| 127 | } |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | private static bool IsWrappedAsString(string value) |
| 132 | { |
no test coverage detected