S
sotto
If i have this Interface:
Public Interface MyInterface
Function test() As Boolean
Function test(ByVal MyVar As String) As Boolean
End Interface
And then i make a
Public Class MyOwnClass
Implements MyInterface
End Class
When i hit [Enter] after the Implements MyInterface
Visual Studio automatically creates
Public Overloads Function test() As Boolean Implements MyInterface.test
End Function
Public Overloads Function test1(ByVal MyVar As String) As Boolean
Implements MyInterface.test
End Function
These two functions for me...
Why does it add the 1 on the overloaded function-name?
Why doesn't it just make a test() and a test(ByVal Myvar As string)
function?
Is there a specific reason for this behaviour?
Public Interface MyInterface
Function test() As Boolean
Function test(ByVal MyVar As String) As Boolean
End Interface
And then i make a
Public Class MyOwnClass
Implements MyInterface
End Class
When i hit [Enter] after the Implements MyInterface
Visual Studio automatically creates
Public Overloads Function test() As Boolean Implements MyInterface.test
End Function
Public Overloads Function test1(ByVal MyVar As String) As Boolean
Implements MyInterface.test
End Function
These two functions for me...
Why does it add the 1 on the overloaded function-name?
Why doesn't it just make a test() and a test(ByVal Myvar As string)
function?
Is there a specific reason for this behaviour?