Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I look for a specific element of IENUMARABLE collection?

Status
Not open for further replies.

WomanPro

Programmer
Nov 1, 2012
180
0
0
GR
Hello anybody I have a mathematical collection in my project as ienumarable type which is the intersection of two lists of integer and I want to look for an element into it, if it is included in that collection, or not, but contains method doesn't provided. Any ideas please, because I am not very familiar with collections? Thank you so much in advanced.
Here is my Collection
Dim GatePositionsResult As IEnumerable
GatePositionsResult = OccuppiedPositionsLst.Except(PcLoneliesAtImminentThreatLst)
Num = 30
How can I look with an if statement if GatesPositionsResult includes num.
Any help will be much appreciated.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top