How do you guys recommend searching an ArrayList for a specific string? My arraylist is defined as:
Public Shared VisioSwitchArray As New ArrayList() Public Structure switch Public HOSTNAME As String Public IP As String Public MODEL As String Public VLANS As String Public NEIs() As neighbor End Structure Public Structure neighbor Public IFACE As String Public DIST_IP As String Public DIST_IFACE As String End Structure
What I'm trying to compare is the IP string from the switch structure and the DIST_IP string from the neighbor structure. Problem is, using VisioSwitchArray.contains(some_ip_address) always returns false. I'm guessing it is searching for a matching switch object with in the list right?