Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.
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.
|Modal Popup Extender control||1||18|
|In an ASP.NET text box control, what would be the proper ValidationExpression for a field comprised of numbers, a decimal point and commas (thousand separator) ?||2||22|
|Reading the web config for a running service on Windows 10||16||40|
|Latest thoughts on C# utilizing Mono on Linux vs .NET on Windows?||5||19|