Table of Contents

Interface IHumanizer

Namespace
Shift.Common
Assembly
Shift.Common.dll

Insulates our code from direct dependencies on the Humanizer assemblies.

public interface IHumanizer
Extension Methods

Methods

Humanize(DateTimeOffset?)

string Humanize(DateTimeOffset? when)

Parameters

when DateTimeOffset?

Returns

string

LowerCase(string)

string LowerCase(string sentence)

Parameters

sentence string

Returns

string

Pluralize(string)

string Pluralize(string noun)

Parameters

noun string

Returns

string

SentenceCase(string)

string SentenceCase(string sentence)

Parameters

sentence string

Returns

string

TitleCase(string)

string TitleCase(string sentence)

Parameters

sentence string

Returns

string

ToQuantity(int, string)

string ToQuantity(int quantity, string noun)

Parameters

quantity int
noun string

Returns

string

ToQuantity(int, string, string)

string ToQuantity(int quantity, string format, string noun)

Parameters

quantity int
format string
noun string

Returns

string