I can easily do this in C#...but I need the equivolent in VB.Net. I need to be able to implement various IAsyncResult properties in VB.Net.
IN C#
Works like a champ...
public object AsyncState { get; set; }
IN VB.NET - THIS FAILS
This fails because you cannot overload a property in VB.Net
Public ReadOnly Property AsyncState() As Object Implements IAsyncResult.AsyncState
Get
'... the GET's code goes here ...
End Get
End Property
Public WriteOnly Property AsyncState() As Object
Set(ByVal value As Object)
'... the SET's code goes here ...
End Set
End Property
IN VB.NET - BOTH THESE FAIL
This fails the "must implement IAsyncResult" requirement
Public AsyncState As Object
Public AsyncState As Object Implements IAsyncResult.AsyncState
Any help is appreciated.