Reflection IT Blog

Benieuwd naar de laatste ontwikkelingen rondom software ontwikkeling en Reflection IT? Onze slimme koppen delen regelmatig hun kennis en ervaring. Zo weet jij wat er speelt!

vb tagged Blog posts

AsyncHelper for VB.NET


I received a mail today from Rolf Gasber asking me whether I could help him with a VB.NET version of the AsyncHelper which I used in an earlier post. Here it is:


Class AsyncHelper

    Private Delegate Sub DynamicInvokeShimProc( ByVal d As [Delegate], _
ByVal args() As Object )

    Private Shared _dynamicInvokeShim As _
New DynamicInvokeShimProc( AddressOf DynamicInvokeShim)

    Private Shared _dynamicInvokeDone As _
New AsyncCallback( AddressOf DynamicInvokeDone)

    Public Shared Sub FireAndForget( ByVal d As [Delegate], _
ByVal ParamArray args() As Object )
        _dynamicInvokeShim.BeginInvoke(d, args,
AddressOf _
 DynamicInvokeDone, Nothing )
    End Sub

    Private Shared Sub DynamicInvokeShim( ByVal d As [Delegate], _
ByVal args() As Object )
    End Sub

    Private Shared Sub DynamicInvokeDone( ByVal ar As IAsyncResult)
    End Sub



.NET Quick Reference Card


Download DotNetRefCard.pdf

I have created a small quick reference card for Microsoft .NET with some hard to remember details. My printer supports two pages per side and double sided printing. This makes it possible to print the 4 pages on a single sheet which makes it easier to use.


  • C# String escape sequence
  • C# Numeric & Char Literals
  • String Formatting
  • Standard Numeric Format Strings
  • Custom Numeric Format Strings
  • Standard DateTime Format Strings
  • Custom DateTime Format Strings
  • Regular Expressions

I hope you will find it useful.

Any suggestions and feedback for improving this reference card is most welcome. Send your suggestions and feedback to



I think I have found a Bug in VB.NET (Final)! I can't compile the following program (Build Error: 'Private Function Foo() As Integer' and 'Public Function Foo() As String' cannot overload each other because they differ only by return types. ). It worked in Beta2 of VB.NET.

Public Interface ITestInterface

   Function Foo() As Integer

End Interface

Public Class TestClass

   Implements ITestInterface

   Private Function Foo() As Integer Implements VBBug.ITestInterface.Foo
      Return 1
   End Function

   Public Function Foo() As String
      Return "2"
   End Function

End Class

Get in touch

Met dit formulier kunt u informatie over een In-Company of Small-Group training aanvragen. U kunt in het bericht aangeven welke training u wilt, voor hoeveel personen, wanneer deze verzorgd moet worden en op welke locatie. Wij nemen vervolgens contact met u op.

U kunt ons ook bereiken via telefoonnummer +31 (0)493-688810 of per mail