c# properties and get parameters

Jan 17 2007 7:12 AM
Hi,
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 Property

any help/tips is greatly appreciated.


thanks

p.s dictionary is a string dictionary.