C# 클래스 TabMon.StringExtensions

Extension methods for the System.String class.
파일 보기 프로젝트 열기: tableau/TabMon

공개 메소드들

메소드 설명
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