VB.NET:
Module Module1
Sub Main()
Dim myArray(6) As Integer
myArray(0) = "2"
myArray(1) = "12"
myArray(2) = "2"
myArray(3) = "2"
myArray(4) = "2"
Console.WriteLine(myArray.IndexOf(myArray, 12))
Console.ReadLine()
End Sub
End Module
If I replace myArray in the writeline command with Array.IndexOf it compiles and works fine.. If i do not, it gives me this error :
Access of shared member, constant member, enum member or nested type through an instance; qualifying expression will not be evaluated.
But it compiles also but gives me a green line under myArray.IndexOf
Any help ?