Table of Contents

Method ToOrdinal

Namespace
DocWright.Dom.Fields
Assembly
DocWright.Dom.dll

ToOrdinal(long, CultureInfo)

Converts a number to an ordinal in digits: 1st, 2nd, 3rd, 4th.

public static string ToOrdinal(long value, CultureInfo culture)

Parameters

value long

The value.

culture CultureInfo

The culture used for the digits.

Returns

string

The ordinal.

Exceptions

ArgumentNullException

culture is null.