int class : ToString() method

Description

Gets a string representation of the integer value.

Syntax

intInstance.ToString()

Arguments

None

Return value

ClassDescription
stringA string representation of the integer value.

Sample code

//anyInt is a instance of int type.

string stringRepresentation = anyInt.ToString();

Notes

It's a wrapper of the System.Int32.ToString().

Links for reference

Copyright © Rice All rights reserved.