Skip to main content

Microsoft Silverlight

Answered Question Implicit convertionRSS Feed

(0)

Bigsby
Bigsby

Member

Member

262 points

80 Posts

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
Bigsby

Member

Member

262 points

80 Posts

Answered Question

Re: Implicit convertion

 My bad.

 I was defining the implicit operator outside the class.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities