Page view counter
Implicit convertion
Last post 08-29-2008 11:58 AM by Bigsby. 1 replies.
Sort Posts:
08-29-2008 11:40 AM
Implicit convertion

 I was trying to implement an implicit conversion for a custom type in a Silverlight 2 Beta 2 application following this example:

http://msdn.microsoft.com/en-us/library/aa288476(VS.71).aspx

 The error I get from the compiler is that instead of 'implicit' 'class', 'delegate', 'struct', or such is expected.

 

Is there any knowledge of this issue in Silverlight?

Bigsby

Loading...
Joined on 07-19-2007
Lisboa, Portugal
Posts 31
08-29-2008 11:58 AM
Marked as Answer
Re: Implicit convertion

 My bad.

 I was defining the implicit operator outside the class.

Bigsby

Loading...
Joined on 07-19-2007
Lisboa, Portugal
Posts 31
Microsoft Communities