Certo. Come prima cosa ho provato ad utilizzare la parola chiave Me, evidentemente in maniera errata in quanto mi venivano restituiti degli errori. Come alternativa ho utilizzato questa porzione di codice.
codice:
Public Class Classe
Private _mappaBean As IDictionary = New Hashtable()
Public Property MappaBean(ByVal key As Object)
Get
Return Me._mappaBean(key)
End Get
Set(ByVal value)
Me._mappaBean(key) = value
End Set
End Property
End Class
Ma è ovvio che non è la stessa cosa.
Questa è la porzione di codice che ho provato con la parola chiave Me, ma che non va bene.
codice:
Public Property Me(byVal key As Object) As Object
Get
Return _mappaBean.Item(key)
End Get
Set(ByVal value As Object)
_mappaBean(key) = value
End Set
End Property