i am moving to c# from vb.net
i hope someone can tell how to create a property with a paremeter for the GET statement.
the vb.net one is:
Public Property ObjectValue(ByVal key As String) As String Get Return dictionary(key).tostring End Get Set(ByVal Value As String)
dictionary(key) = Value
End Set End Propertyany help/tips is greatly appreciated.thanks
p.s dictionary is a string dictionary.
Replies
Know the answer? Post it — somebody with the same question will find it here.