I get the following syntax error when I created this wrapper method in my Bus Obj for GetCurrentDataSet that casts the generic DataSet to the strongly typed DataSets as written in the Dev Guide:
GetDataSet shadows an overloadable member declared in the base class 'mmBusinessObject'. If you want to overload the base method this method must be declared 'Overloads'.
Shouldn't the example (VB.NET) be coded as:
' Wrapper method for GetCurrentDataSet that casts the DataSet to EmployeeDataSet
Public Overloads Function GetDataSet() As EmployeeDataSet
Return CType(Me.GetCurrentDataSet(), EmployeeDataSet)
End Function
Rather than:
' Wrapper method for GetCurrentDataSet that casts the DataSet to EmployeeDataSet
Public Function GetDataSet() As EmployeeDataSet
Return CType(Me.GetCurrentDataSet(), EmployeeDataSet)
End Function
THANKS
Joe Salvatore, Programmer/Analyst - The Stellar Group