Support for VB.NET still sux

Following a post I noticed regarding the new version of Reflector I decided to see whether support for VB.NET had been improved.  Well the sad news it that it might well have been improved but the first thing I tried – disassembling a custom event failed badly.  Instead of giving something similar to:


Public Custom Event MyEvent As EventHandler(Of EventArgs)
 
AddHandler(ByVal value As EventHandler(Of EventArgs))
  End AddHandler
  RemoveHandler(ByVal value As EventHandler(Of EventArgs))
  End RemoveHandler
  RaiseEvent(ByVal sender As Object, ByVal e As System.EventArgs)
  End RaiseEvent
End Event


Reflector gives:


Public Event MyEvent As EventHandler(Of EventArgs)
 
AddHandler(ByVal value As EventHandler(Of EventArgs))
  End AddHandler
  RemoveEvent(ByVal value As EventHandler(Of EventArgs))
  End RemoveEvent
End Event


When is someone going to build a good disassembler for VB.NET?  In the meantime grab Reflector if you aren’t already using it cause all in all it is a brilliant tool and gives you an opportunity to explore the way that other developers write code!

Leave a comment