Page 1 of 1

What is this?

Posted: Tue Dec 11, 2012 2:04 am
by evgen
a = (B)(I)b; What happens in this statement and where i can read about it. Thanks. From Russia with love.))

Re: What is this?

Posted: Tue Dec 11, 2012 7:25 am
by admin
A multiple cast is not much different from a single one. You should break a multiple into two single casts as shown below:

b = (B)(I) a;

is same as:

I temp = (I) a;
b = (B) temp;

That's it. There is nothing more to it.

HTH,
Paul.