Array.LastIndexOf : Array « System « VB.Net by API






Array.LastIndexOf

  
Imports System

Public Class MainClass
    
    Shared Sub Main(ByVal args As String())
        Dim values As Array = _
            Array.CreateInstance(GetType(Integer), 11)
        For i As Integer = 0 To 10
            values.SetValue(i, i)
        Next i


        Console.WriteLine(Array.IndexOf(values, 6).ToString)
        Console.WriteLine(Array.LastIndexOf(values, 3).ToString)
    End Sub

End Class
  

   
    
  








Related examples in the same category

1.Array.BinarySearch
2.Array.Clone
3.Array.Copy
4.Array.CreateInstance
5.Array.GetLowerBound
6.Array.GetUpperBound
7.Array.GetValue
8.Array.IndexOf
9.Array.Length
10.Array.Reverse
11.Array.SetValue
12.Array.Sort