valueOf

Summary

Returns the primitive int value wrapped by the System.Integer32 object.

Usage

public int valueOf()

Returns

The primitive int value wrapped by the System.Integer32 object.

Description

Returns the primitive int value wrapped by the System.Integer32 object.

Examples

Basic Usage
1
2
3
4
5
6
import System;
 
System.Integer32 a = new System.Integer32(1);
System.Integer32 b = new System.Integer32(2);
Console.log(a.valueOf()); // 1
Console.log(b.valueOf()); // 2

Share

HTML | BBCode | Direct Link