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.
Answers
Know the answer? Post it. Somebody with the same question will find it here.