Public Overrides Function Equals(ByVal obj As Object) As Boolean
Dim O As New Minimal()
Try
O = DirectCast(obj, Minimal)
Catch typeExc As InvalidCastException
Throw typeExc
Exit Function
End Try
If O.BDate = m BDate Then
Equals = True
Else
Equals = False
End If
End Function
To your statement, " If an exception is unhandled inside a class, will the exception be automatically passed to the calling application?" Let me state it this way if an exception is thrown in a class and it is not handled it will bubble up to the caller and will continue to bubble up the call stack until one of two things happen It is caught by your code or the CLR will catch it and display a Unhandled exception error message to the user and terminate the program.
Fernando