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

ClassNameDescription
someClasssearchA instance to search.

Return value

ClassDescription
boolA 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

Copyright © Rice All rights reserved.