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
Class | Name | Description |
someClass | search | A instance to search. |
Return value
Class | Description |
bool | A 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