I want to create one implementation of a constructor if an employee number is passed as an argument and a different implementation if a user Id is passed as an argument, but both arguments are of type "long". I could create two one element structures (one for EmployeeNo with a Public variable "EmployeeNo", and one for UserId with a Public variable "UserId") and call the constructor with code similar to the following ...
Dim EmployeeNo As EmployeeNo
EmployeeNo.EmployeeNo = 240
Dim Class1 As New Class1(EmployeeNo)
Does anyone have another idea? I would like this better if it was possible to make "Employee" the default variable so the programmer would only have to type "EmployeeNo = 240", and if I had a default property expose the "EmployeeNo" variable it would have to have an index.