IsEqualTo Method

Determines whether or not the enum is equal to the specified one.

Syntax

Sub IsEqualTo(enumCompare)


Parameters


val

Type: VSEnumPropertyVale

The enum to compare



Return Value


Type: Boolean

Examples

IronPython

#Check equality

myEnum = VSEnumPropertyValue(1, "red;amber;green")
myEnum_clone = myEnum.Clone()

is_equal = myEnum_clone.IsEqualTo(myEnum)


C#

//Check equality

VSEnumPropertyValue myEnum = VSEnumPropertyValue(1, "red;amber;green");
VSEnumPropertyValue myEnum_clone = myEnum.Clone();
bool is_equal = myEnum_clone.IsEqualTo(myEnum);

Remarks