Constructor()

Namespace ›› System ›› MfInteger ›› Methods ››
Parent Previous Next

Constructor()

Initializes a new instance of the MfInteger class.

OutputVar := new MfInteger([int, returnAsObj, readonly])

Constructor([int, retunAsObj, readonly])

Initializes a new instance of the MfInteger class optionally setting the Value property, ReturnAsObject property and the Readonly property.

Parameters

int

The MfInteger object or var containing integer to create a new instance with.

returnAsObj

Determines if the current instance of MfInteger class will return MfInteger instances from functions or vars containing integer. If omitted value is false

readonly

Determines if the current instance of MfInteger class will allow its Value to be altered after it is constructed.
The Readonly property will reflect this value after the class is constructed.
If omitted value is false

Remarks

Sealed Class.
This constructor initializes the MfInteger with the integer value of int.
Value property to the value of int.
ReturnAsObject will have a value of returnAsObj
Readonly will have a value of readonly.
If Readonly is true then any attempt to change the underlying value will result in MfNotSupportedException being thrown.

Throws

Throws MfNotSupportedException if class is extended.
Throws MfArgumentException if error in parameter.
Throws MfNotSupportedException if incorrect type of parameters or incorrect number of parameters.