Constructor()

Namespace ›› System ›› MfStringComparison ›› Methods ››
Parent Previous Next

Constructor()

OutputVar := new MfStringComparison()
OutputVar := new MfStringComparison(num)
OutputVar := new MfStringComparison(instanceEnum)
OutputVar := new MfStringComparison(enumItem)

Constructor()

Creates a new instance of MfStringComparison class and set initial value to the value of Ordinal.

Constructor(num)

Creates a new instance of MfStringComparison class and sets initial value to value of num.

Parameters

num

An integer value representing an Enumeration Value of MfStringComparison.

Example

MyEnum := new MfStringComparison(4) ; OrdinalIgnoreCase

Constructor(instanceEnum)

Creates a new instance of MfStringComparison class an set the intial value to the value of instanceEnum.

Parameters

instanceEnum

an instance of MfStringComparison whose Value is used to construct this instance.

Example

MyEnum := new MfStringComparison() ; create instance with default value
MyEnum.Value := MfStringComparison.Instance.OrdinalIgnoreCase.Value
MfE := new MfStringComparison(MyEnum) ; create a new instance and sets it value to the value of MyEnum

Constructor(enumItem)

Creates a new instance of MfStringComparison and set its value enumItem value.

Parameters

enumItem

MfEnum.EnumItem value must Enumeration of MfStringComparison

Example

MyEnum := new MfStringComparison(MfStringComparison.Instance.OrdinalIgnoreCase)

Throws

Throws MfNotSupportedException if this sealed class is extended or inherited.
Throws MfArgumentException if arguments are not correct.