Closed GoogleCodeExporter closed 9 years ago
I believe that you are asking the wrong question. I don't think that the cast
in the C# implementation should be done differently. To mimic the Java
behavior, you simply need to change the line:
if (castMessage == null) {
to
if (castMessage == null && message != null) {
The C# implementation will then match the behavior of the Java implementation
exactly.
Original comment by bbro...@gmail.com
on 25 Mar 2011 at 8:06
I don't expect to do anything on this. We might revisit it when we look at the
generated code for 3.0, but I suspect we won't look into it *specifically* - it
may just drop out.
Original comment by jonathan.skeet
on 15 Feb 2015 at 5:02
Original issue reported on code.google.com by
jonathan.skeet
on 12 Mar 2009 at 7:30