H
Holger Kreissl
hello,
in C# you can define a property like this: public object this [string key]
So you can acess a IDictonary member by the instance that holds the hash or
what ever.. I try to get it in vb but I cant find the way. Public Property
me(ByVal key As String) As Object doesnt work like this in C# for the
property. So how is the correct syntax for that issue?
Dont work:
Public Property me(ByVal key As String) As Object
Get
If (_data.ContainsKey(key)) Then
Return _data(key)
Else
Return Nothing
End If
End Get
Set(ByVal value As Object)
SetValue(key, value)
End Set
End Property
Thanks a lot!
in C# you can define a property like this: public object this [string key]
So you can acess a IDictonary member by the instance that holds the hash or
what ever.. I try to get it in vb but I cant find the way. Public Property
me(ByVal key As String) As Object doesnt work like this in C# for the
property. So how is the correct syntax for that issue?
Dont work:
Public Property me(ByVal key As String) As Object
Get
If (_data.ContainsKey(key)) Then
Return _data(key)
Else
Return Nothing
End If
End Get
Set(ByVal value As Object)
SetValue(key, value)
End Set
End Property
Thanks a lot!