By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,285 Members | 1,659 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,285 IT Pros & Developers. It's quick & easy.

Trying to implement CanConvertTo-method derived TypeConverter class

P: n/a
Hi!

I'm trying to implement my own CanConvertTo-method from the derived
TypeConverter class.

Public Overrides Function CanConvertFrom(ByVal context As
ITypeDescriptorContext, ByVal sourceType As Type) As Boolean

However, I do get an error message saying:

"function 'CanConvertFrom' cannot be declared Overrides because It does
not override a function in a base class."

Looking to MSDN, It looks to me like I've matched the base class
signature for this method.

If anyone could shed some light over this I'd be most appreciated.
Regards
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Thu, 26 Aug 2004 15:51:39 GMT, Benny C. Mildh wrote:
I'm trying to implement my own CanConvertTo-method from the derived
TypeConverter class.

If anyone could shed some light over this I'd be most appreciated.


At the top of your class do you have"

Inherits ExpandableObjectConverter

?

--
Chris

dunawayc[AT]sbcglobal_lunchmeat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
Nov 21 '05 #2

P: n/a
Chris Dunaway wrote:
On Thu, 26 Aug 2004 15:51:39 GMT, Benny C. Mildh wrote:

I'm trying to implement my own CanConvertTo-method from the derived
TypeConverter class.

If anyone could shed some light over this I'd be most appreciated.

At the top of your class do you have"

Inherits ExpandableObjectConverter

?

No. I have "Ineherits TypeConverter". However, I think I've found the
problem: I forgot to include the keyword "overloads" in the signature.
It works better now. ;)
Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.