Table of Contents

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

value string

A string instance.

suffixes IEnumerable<string>

Suffix strings to remove.

ignoreCase bool

Whether to ignore case.

Returns

string

A new string instance.