CliStringUtilStripSuffixes Method

Strips specific suffixes from the string.

Definition

Namespace: DotMake.CommandLine
Assembly: DotMake.CommandLine (in DotMake.CommandLine.dll) Version: 2.6.7
C#
public static string StripSuffixes(
	string value,
	IEnumerable<string> suffixes,
	bool ignoreCase = true
)

Parameters

value  String
A string instance.
suffixes  IEnumerableString
Suffix strings to remove.
ignoreCase  Boolean  (Optional)
Whether to ignore case.

Return Value

String
A new String instance.

See Also