Joutsen v0.5.0+18-g5fdf104
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
Joutsen.IntExtensions Class Reference

A static class containing extensions for the int type. More...

Static Public Member Functions

static char ToChar (this int number)
 Converts a number between 0 and 9 to the corresponding text character.
 

Detailed Description

A static class containing extensions for the int type.

Since
Unreleased

Member Function Documentation

◆ ToChar()

static char Joutsen.IntExtensions.ToChar ( this int  number)
static

Converts a number between 0 and 9 to the corresponding text character.

Parameters
numberthe number to convert
Returns
the text character representing the number
Exceptions
ArgumentExceptionif the character is smaller than zero or greater than nine