mgusmano / sharpkit

Automatically exported from code.google.com/p/sharpkit
0 stars 0 forks source link

Support custom casting #158

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
"NativeCasts=true" feature, which will allow 'instanceof' checking when 
performing is/as/casting operation.

el is HtmlElement => el instanceof HtmlElement
el as HtmlElement => (el instanceof HtmlElement) ? el : null;
(HtmlElement)el  => (el instanceof HtmlElement) ? el : throw new 
Error("InvalidCastException");

Original issue reported on code.google.com by DanelK...@gmail.com on 26 Jun 2012 at 6:59