list class : ContainsByRef(class) method
Description
Gets a value that indicates whether there are elements that match as reference.
Syntax
listInstance.ContainsByRef(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 reference. |
Sample code
//anyList is a instance of list type.
bool match = anyList.ContainsByRef(someInstance);
Notes
This method compare equivalence as references. Please note that do not compare equivalence as value.
Returns true if there are elements to match, otherwise returns false.
Links for reference
None