Page 1 of 1

Error in cast delegate

Posted: Sun Sep 06, 2015 4:59 am
by CyborgDE
Hello,

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,
Uwe

Re: Error in cast delegate

Posted: Sun Sep 06, 2015 10:35 am
by JS-Support @Userware
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.

Regards,
JS-Support