CliStringUtil.StripSuffixes Method
Definition
- Namespace
- DotMake.CommandLine
- Assembly
- DotMake.CommandLine.dll
Strips specific suffixes from the string.
public static string StripSuffixes(string value, IEnumerable<string> suffixes, bool ignoreCase = true)
Parameters
valuestringA string instance.
suffixesIEnumerable<string>Suffix strings to remove.
ignoreCaseboolWhether to ignore case.