I have a function in VB6 with a calling list that looks like this
The purpose of this thing is that it can be invoked with multiple different class objects as the second argument. The code sorts out what type of object it is and does the appropriate things depending on that result.
When I ask VB.Net to convert this to .Net syntax comes up with
Is this just VB.Net bitching and moaning about something that isn't a real problem or do I need to overload this routine with explicit early-bound versions of every possible class that could be passed into it?
Code:
Public Function GetPol(Policy_Name As String, Optional Obj As Object = Nothing) As Variant
When I ask VB.Net to convert this to .Net syntax comes up with
Problem is ... the default properties are not being used. All properties in the passed in, late bound classes are fully qualified.VB.Net said:In Visual Basic 2005, default properties are no longer supported; all property references must be fully qualified. During upgrade, default properties for early-bound objects are resolved to the property name; however, late-bound objects cannot be resolved because it is impossible to determine a default property without knowing what the object is.
Is this just VB.Net bitching and moaning about something that isn't a real problem or do I need to overload this routine with explicit early-bound versions of every possible class that could be passed into it?