H
Howard Kaikow
I've been trying to convert the following C# Dispose to VB .NET:
protected override void Dispose(bool disposing)
{
if (excelThread != null)
{
excelThread.Join();
}
if (disposing)
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose(disposing);
}
Using the code below following, I get the error:
Method 'Dispose' has multiple definitions with identical signatures
What am I doing wrong?
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If Not (excelThread Is Nothing) Then
excelThread.Join()
End If
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub
protected override void Dispose(bool disposing)
{
if (excelThread != null)
{
excelThread.Join();
}
if (disposing)
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose(disposing);
}
Using the code below following, I get the error:
Method 'Dispose' has multiple definitions with identical signatures
What am I doing wrong?
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If Not (excelThread Is Nothing) Then
excelThread.Join()
End If
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub