Looks like it's meant to be an override of the Item method...so S-Twilley was mostly right. This is just to correct the use of "this" keyword from C#
ReadOnly Property Item(ByVal index As Integer) As UserInfo
Get
Return CType(MyBase.Item(index), UserInfo)
End Get
End Property
Main Topics
Browse All Topics





by: S-TwilleyPosted on 2005-03-10 at 13:14:48ID: 13510890
I'm assuming UserInfo is some class you designed :|
I can't be sure about this, as I don't know where the base array is declared... but something like this I think:
ReadOnly Property this(ByVal index As Integer) As UserInfo
Get
Return base(index)
End Get
End Property
===============
If base is the underlying ArrayList item collection... and your property is just casting the items then:
===============
Public Class myArrayListClass
Inherits ArrayList
'...
'This is the bit that probably interests tiy
ReadOnly Property this(ByVal index As Integer) As UserInfo
Get
Return CType(MyBase.Item(index), UserInfo)
End Get
End Property
End Class
============
If I've misundestood... could you give a bit more info