Hello All,
I just wrote some code in C# and tried converting to VB.Net.
I am getting 3 kinds of errors in my code :-
- Class 'XXX' must implement 'Function XXX(abc,pqr,...)' for interface 'XX.XX.XX'.
- 'RaiseEvent' definition missing for event 'XXX'.
- 'XXX(abc,pqr,...)' is an event and cannot be called directly. Use a 'RaiseEvent' statement to raise an event.
For first point, I am bit confused as I have already implemented all the Interface members into my class and even though the compiler is telling me that I must implement the same.
For example :-
Public Class MyConverter
Implements IValueConverter
Public Function Convert(ByVal value As Object, ByVal targetType As Type, ByVal parameter As Object, ByVal culture As System.Globalization.CultureInfo) As Object
If value IsNot Nothing AndAlso TypeOf value Is Message Then
Return True
End If
Return False
End Function
Public Function ConvertBack(ByVal value As Object, ByVal targetType As Type, ByVal parameter As Object, ByVal culture As System.Globalization.CultureInfo) As Object
Return Nothing
End Function
End Class
shows the following error :-
Class 'MyConverter' must implement 'Function ConvertBack(value As Object, targetType As Type, parameter As Object, culture As Globalization.CultureInfo) As Object' for interface 'System.Windows.Data.IValueConverter'.
Please help me with this.
Thanks to all.