Error on implementation of one method of an interface?

Ö

Özden Irmak

Hello,

I'm trying to implement IDesignerHost interface. Everything is ok except
GetType method which gives me the errors below :

DesignerHost' must implement 'Overridable Overloads Function
GetType(typeName As String) As System.Type' for interface
'System.ComponentModel.Design.IDesignerHost'.

Keyword is not valid as an identifier.

My Implementation for this method is like this :
Public Function GetType(ByVal typeName As String) as System.Type implements
IDesignerHost.GetType

Can anyone help?

Thanks in advance...

Özden
 
H

Herfried K. Wagner [MVP]

* "Özden Irmak said:
I'm trying to implement IDesignerHost interface. Everything is ok except
GetType method which gives me the errors below :

DesignerHost' must implement 'Overridable Overloads Function
GetType(typeName As String) As System.Type' for interface
'System.ComponentModel.Design.IDesignerHost'.

Keyword is not valid as an identifier.

Try '[GetType]' instead.
 
Ö

Özden Irmak

Thank you so much...:))

Herfried K. Wagner said:
* "Özden Irmak said:
I'm trying to implement IDesignerHost interface. Everything is ok except
GetType method which gives me the errors below :

DesignerHost' must implement 'Overridable Overloads Function
GetType(typeName As String) As System.Type' for interface
'System.ComponentModel.Design.IDesignerHost'.

Keyword is not valid as an identifier.

Try '[GetType]' instead.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top