Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

VS 2010 How do I fix? Error: Select' is not a member of 'System.Collections.Generic.List(Of S

$
0
0
Keep getting error: 'Select' is not a member of 'System.Collections.Generic.List(Of String)'.

I am rendering x86 and using framework 2.0 (as its unnecessary for the direct player I'm using)



How do I fix this? or is there another method of doing this?

The purpose of this function is simply to sort an array.
Attachment 94627


Code:

Code:

Position15 = Sortlinks(Position15)

    End Sub
    Private Function Sortlinks(ByVal Info As List(Of String))
        Dim order() As Integer = Info.Select(Function(s) If(s.Contains("Facebook.com"), 0, If(s.Contains("Twitter.com"), 1, If(s.Contains("MySpace.com"), 2, If(s.Contains("Youtube.com"), 3, If(s.Contains("Linkedin.com"), 4, -1)))))).ToArray
        Dim temp() As String = Info.ToArray

        Array.Sort(order, temp)
        Info = temp.ToList
        Return Info
    End Function

Attached Images
 

Viewing all articles
Browse latest Browse all 27554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>