Home About Rice Downloads Documents Others Cooker CookerGX
Documents  >  Class  >  int  >  Clone()
int class : Clone() method

Description

Gets a new instance with the same value as the calling instance.

Syntax

intInstance.Clone()

Arguments

None

Return value

ClassDescription
intA new instance with the same value as the calling instance.

Sample code

//anyInt is a instance of int type.

int newInstance = anyInt.Clone();

Notes

None

Links for reference

None

Copyright © Rice All rights reserved.