History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-50742
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Andrey Simanovsky
Reporter: Ilya Ryzhenkov
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ReSharper

Delegating properties in VB is broken

Created: 09 Oct 07 18:13   Updated: 10 Oct 07 19:46
Component/s: Generate Action
Fix Version/s: 3.1, 4.0
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
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


 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.