Nasenbaer
Nasenbaer

Reputation: 4900

Enum namespace not available

I've got this code running since some time without error. Today, a new error occurs. Perhaps after Windows Update?

Error 1 'Select' is not a member of 'System.Collections.Generic.IEnumerable(Of Integer)'. C:\myclass.vb 3274 35 TBDevice .

Dim value As String = "00000001"
Dim B() As Byte = Global.System.Linq.Enumerable.Range(0, value.Length / 8).Select(Function(pos) Convert.ToByte(value.Substring(pos * 8, 8), 2)).ToArray()

any idea how to get rid of the bug?

Upvotes: 0

Views: 153

Answers (1)

Gert Arnold
Gert Arnold

Reputation: 109099

You are missing an import from you file: Imports System.Linq.

Upvotes: 1

Related Questions