Q:

C# lambda event handler into VB.NET

I need to convert some C# code into VB.NET. How should the below lambda event handler be written in VB.NET?
item.PropertyChanged += Function(s, e)
                             If e.PropertyName = "SomeProperty" Then
                                  //do something
                             End If
                        End Function

Code converter tools do not provide any meaningful conversion for this.

A:

I can't say definitely since I'm not sure what the type of item is but I imagine this will work:
AddHandler item.PropertyChanged, Sub(s, e)
                                    If e.PropertyName = "SomeProperty" Then
                                       'do something
                                    End If
                                 End Sub

