Takes a number and appends the ordinal suffix. ie. 1 = 1st, 13 = 13th.

Namespace: CodeSmith.Engine
Assembly: CodeSmith.Engine (in CodeSmith.Engine.dll) Version: 6.0.0.0 (7.0.0.15127)

Syntax

C#
public static string AppendOrdinalSuffix(
	int number
)
Visual Basic
Public Shared Function AppendOrdinalSuffix ( 
	number As Integer
) As String

Parameters

number
Type: System..::..Int32

Return Value

Type: String

See Also