Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.
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.
Webservice descriptive error message for System.IndexOutOfRangeExce
|Editing XSL files,||2||21|
|Using C#, how would you set up an array with pairs of values, 1 of type char and the other of type int?||7||42|
|ASP.Net Session State alternatives||3||26|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
12 Experts available now in Live!