private void AddNewDelimiter(string delimiter) { if (!AcceptableDelimiters.Contains(delimiter)) { AcceptableDelimiters.Add(delimiter); } }
/// <summary> /// Replace the Newline (\n) delimiter with an optional argument delimiter /// </summary> /// <param name="delimiter"></param> public void ReplaceAlternativeDelimiterWithArgumentDelimiter(string delimiter) { if (AcceptableDelimiters.Contains(@"\n")) { AcceptableDelimiters.Remove(@"\n"); } AddNewDelimiter(delimiter); }