public static void Replace(string key, string value) { if (value.Contains("\"")) { value.Replace('"', '\"'); } if (csvLoader == null) { csvLoader = new CSVLoader(); } csvLoader.LoadCSV(); csvLoader.Edit(key, value); UpdateDictionaries(); }
public static void Replace(string key, string[] values) { CheckValues(ref values); if (csvLoader == null) { csvLoader = new CSVLoader(); } csvLoader.LoadCSV(); csvLoader.Edit(key, values); csvLoader.LoadCSV(); UpdateDictionaries(); }
public static void Replace(string key, string value)//Process the new value and add on necessary regex to identify it in the CSV file, and then edit the specific key { if (value.Contains("\"")) { value.Replace('"', '\"'); } if (csvLoader == null) { csvLoader = new CSVLoader(); } csvLoader.LoadCSV(); csvLoader.Edit(key, value); csvLoader.LoadCSV(); UpdateDictionaries(); }