list class : ContainsByVal(class) method

Description

Gets a value that indicates whether there are elements that match as value.

Syntax

listInstance.ContainsByVal(someClass search)

Arguments

ClassNameDescription
someClasssearchA instance to search.

Return value

ClassDescription
boolA value that indicates whether there are elements that match as value.

Sample code

//anyList is a instance of list type.

bool match = anyList.ContainsByVal(someInstance);

Notes

This method compare equivalence as value. Please note that do not compare equivalence as references.

Returns true if there are elements to match. otherwise returns false.

This method has a meaning in int, long, real, string, and bool. Does not have a meaning in other types.

Links for reference

None

Copyright © Rice All rights reserved.