In C# you can not have indexed properties. That said, how do I convert the following code from VB.net to C#?
Private _PatchSpectrum(49) As Double
Public ReadOnly Property GetPatchSpectrum() As Double()
Get
Return _PatchSpectrum
End Get
End Property
Public WriteOnly Default Property PatchSpectrum(idx As Integer) As Double
Set(ByVal value as Double)
_PatchSpectrum(idx) = value
End Set
End Property
You’d do this like: