Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
Public Class MyClass1 Private MyID As String = "" Private MyName As String = "" Private MyAddress As String = "" Public Property ID() As String Get Return MyID End Get Set(ByVal Value As String) MyID = Value End Set End Property Public Property Name() As String Get Return MyName End Get Set(ByVal Value As String) MyName = Value End Set End Property Public Property Address() As String Get Return MyAddress End Get Set(ByVal Value As String) MyAddress = Value End Set End Property End Class ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ And I want to search by Name say 'MyFirstName' from an array list of objects of type MYClass1 as - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Dim arrlMyClass1 As ArrayList 'a large array list of objects of type MyClass1 Dim objMyObject As New MyClass1 Dim MyID As String = "" For Each objMyObject In arrlMyClass1 If Trim(LCase("MyFirstName")) = Trim(LCase(objMyObject.Name)) Then MyID = objMyObject.ID Exit For End If Next ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ I am looking for an efficient search method to replace the above to search an object by item Name - say 'MyFirstname'. The For each loop is taking a lot of time if the array list is large.
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.