C
Colin McGuire
Hi all, when I write the class below
Private Class employee
End Class
and then add the line "Implements IVF" which is an interface I have
written, the IDE modifies my code to display
Private Class employee
Implements IVF
Public Function getPerson() As personDetails Implements
IVCO.getPerson
End Function
End Class
The interface defines a single function returning type personDetails.
My question is why is the function declaration in my private class
Public Function getPerson() As personDetails Implements
IVCO.getPerson
and just not
Public Function getPerson() As personDetails
because I already have the "Implements IVF" in the class header. In
other classes I have written, that also implement an interface, I
don't have this "Implements IVCO.getPerson" bit and I'm not sure why,
and if I remove it the compiler complains.
I am running VS2003, .Net runtime 1.1, on a WinXP home computer.
Thank you
Colin
BTW: my interface looks like this and is a separate class/file in my
project.
Public Interface IVF
Function getPerson() As personDetails
End Interface
Private Class employee
End Class
and then add the line "Implements IVF" which is an interface I have
written, the IDE modifies my code to display
Private Class employee
Implements IVF
Public Function getPerson() As personDetails Implements
IVCO.getPerson
End Function
End Class
The interface defines a single function returning type personDetails.
My question is why is the function declaration in my private class
Public Function getPerson() As personDetails Implements
IVCO.getPerson
and just not
Public Function getPerson() As personDetails
because I already have the "Implements IVF" in the class header. In
other classes I have written, that also implement an interface, I
don't have this "Implements IVCO.getPerson" bit and I'm not sure why,
and if I remove it the compiler complains.
I am running VS2003, .Net runtime 1.1, on a WinXP home computer.
Thank you
Colin
BTW: my interface looks like this and is a separate class/file in my
project.
Public Interface IVF
Function getPerson() As personDetails
End Interface