Error in cast delegate

Please report bugs here. If you are unsure whether something is a bug or an expected behavior, please post it on the "Technical Support" forum instead, and wait for a moderator to handle/move the post.
Posts: 75
Joined: Wed Aug 12, 2015 9:21 pm

Error in cast delegate

Postby CyborgDE » Sun Sep 06, 2015 4:59 am


the next hard to find error ...

I have a variable from type RoutedEventHandler, this works under c#:

Code: Select all

Delegate del = value as Delegate;
if (del != null) ...

under JavaScript I got a null !?

Workaround : I must call like :

Code: Select all

RoutedEventHandler del = value as RoutedEventHandler;

Best regards,

JS-Support @Userware
Site Admin
Posts: 1139
Joined: Tue Apr 08, 2014 3:42 pm

Re: Error in cast delegate

Postby JS-Support @Userware » Sun Sep 06, 2015 10:35 am

Thanks a lot Uwe for reporting this. It seems to be an error related to JSIL and/or Mono.Cecil. We are going to look into it and keep you updated.


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 1 guest