C# Класс TabMon.StringExtensions

Extension methods for the System.String class.
Показать файл Открыть проект

Открытые методы

Метод Описание
JoinIfNotNull ( this baseString, string separator ) : string

Joins multiple strings together with a delimiter. If a string segment is null, it will not be appended.

Pluralize ( this str, int count ) : string

Pluralizes a string.

ToSnakeCase ( this str ) : string

Converts a string to the snake case (lowercase with underscores instead of spaces).

Описание методов

JoinIfNotNull() публичный статический Метод

Joins multiple strings together with a delimiter. If a string segment is null, it will not be appended.
public static JoinIfNotNull ( this baseString, string separator ) : string
baseString this
separator string
Результат string

Pluralize() публичный статический Метод

Pluralizes a string.
public static Pluralize ( this str, int count ) : string
str this The string to pluralize.
count int The quantity used to pluralize.
Результат string

ToSnakeCase() публичный статический Метод

Converts a string to the snake case (lowercase with underscores instead of spaces).
public static ToSnakeCase ( this str ) : string
str this A string that is Camel Case or Pluralized.
Результат string