C# 클래스 TextHelper.Pluralizer

파일 보기 프로젝트 열기: tylermercier/TextHelper

공개 메소드들

메소드 설명
Pluralize ( this text, int count, string plural = null ) : string

Attempts to pluralize the singular word unless count is 1.

메소드 상세

Pluralize() 공개 정적인 메소드

Attempts to pluralize the singular word unless count is 1.
public static Pluralize ( this text, int count, string plural = null ) : string
text this
count int The number of things
plural string If plural is supplied, it will use that when count is > 1, otherwise it will add an 's' to the end
리턴 string