A
Arpan
The following code exists in a class file named "Users.vb":
Namespace Users
Public Class UserDetails
Public FirstName As String
Public LastName As String
Public UserName As String
Public Password As String
Public UserID As String
End Class
Public Class User
Public Function GetDetails(ByVal UserID As Integer) As
UserDetails
Dim uDetails As UserDetails
uDetails = New UserDetails
.................
.................
Return uDetails
End Function
End Class
End Namespace
The above code successfully gets compiled into a DLL & the ASPX page
that imports the above namespace executes without any errors as well
but Visual Web Developer 2005 Express Edition underlines the word
"UserDetails" at all the places within the GetDetails function
(including the function declaration line) indicating a compiler error
that says:
'UserDetails' is ambiguous in the namespace 'Users'.
What's causing this compiler error in VWD 2005?
Thanks,
Arpan
Namespace Users
Public Class UserDetails
Public FirstName As String
Public LastName As String
Public UserName As String
Public Password As String
Public UserID As String
End Class
Public Class User
Public Function GetDetails(ByVal UserID As Integer) As
UserDetails
Dim uDetails As UserDetails
uDetails = New UserDetails
.................
.................
Return uDetails
End Function
End Class
End Namespace
The above code successfully gets compiled into a DLL & the ASPX page
that imports the above namespace executes without any errors as well
but Visual Web Developer 2005 Express Edition underlines the word
"UserDetails" at all the places within the GetDetails function
(including the function declaration line) indicating a compiler error
that says:
'UserDetails' is ambiguous in the namespace 'Users'.
What's causing this compiler error in VWD 2005?
Thanks,
Arpan