Priority
Critical
Type
Bug 
State
Fixed 
Assignee
Andrey Simanovsky 
Subsystem
Generate Action 
Affected versions
Fixed in
Fixed in build
Next build 
  • Submitted by   Ilya Ryzhenkov
    2 years ago (09 Oct 2007 18:13)
  • Updated by Ilya Ryzhenkov
    2 years ago (10 Oct 2007 19:46)
  • Jira: RSRP-50742
    (history, comments)

RSRP-50742

Delegating properties in VB is broken

0
Public Class Test
  Private myObjects As New Dictionary(Of Integer, Object)()
End Class

Try using "Delegating members" to delegate "Item" property. Result is:
  Default Public Property Item(ByVal key As Integer) As Object
    Get (ByVal key As Integer)
      Return myObjects.Item(key)
    End Get
    Set(ByVal key As Integer, ByVal value As Object)
      myObjects.Item(x) = value
    End Set
  End Property

Expected:

  Default Public Property Item(ByVal key As Integer) As Object
    Get
      Return myObjects.Item(key)
    End Get
    Set(ByVal value As Object)
      myObjects.Item(key) = value
    End Set
  End Property


Issue was closed
Comments (0)
 
History (0)
 
Links
 
Issue has no comments