What is this?
Moderator: admin
What is this?
a = (B)(I)b; What happens in this statement and where i can read about it. Thanks. From Russia with love.))
-
- Site Admin
- Posts: 10386
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: What is this?
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.
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.
Who is online
Users browsing this forum: No registered users and 18 guests