T
Thorsten Ottosen
Hi,
Can the following ugly type-switching code by optimized
by the compiler/jitter?:
object o = ...;
if( o is Foo )
return (Foo)o;
Arguably, the cast is guranteed to succeed, but do the
compiler take advantage of that?
If yes, would it be possible to each that conclusion
by looking at the assembler output?
Thanks
-Thorsten
Can the following ugly type-switching code by optimized
by the compiler/jitter?:
object o = ...;
if( o is Foo )
return (Foo)o;
Arguably, the cast is guranteed to succeed, but do the
compiler take advantage of that?
If yes, would it be possible to each that conclusion
by looking at the assembler output?
Thanks
-Thorsten