Iterate comparison - How can I write this better? I would like to write the following piece of code cleaner and more efficient, any comments will be greatly appreciated:

Dim dt As DataTable = SomeDataTable
    For Each dr As DataRow In dt.Rows
        Dim myColumn As String = dr("column").Trim().ToUpper()
        For Each group As String In collection
            If (group.Trim().ToUpper() = myColumn) Then
               'Add some logic here
            End If
        Next`
I'm not a VB.Net developer, but if I were writing this in C# I would use the Contains method on your collection. I'm assuming that your collection is a list of strings in this case.

I've included what the code might look like in VB.Net below. I give no guarantees that it works though. :)

Dim dt As DataTable = SomeDataTable

For Each dr As DataRow In dt.Rows
    Dim myColumn As String = dr("column").ToString().Trim()

    If collection.Contains(myColumn, StringComparer.OrdinalIgnoreCase) Then
        'Do your stuff here
    End If
Next