0

Explicit casting

Tell me,please. This application, if the code writing in C # may make an explicit casting? --- Скажите,пожалуйста.В этом приложении,если код писать на С#,то возможно ставить явный кастинг?

13th Jan 2017, 4:11 PM
Влад Васильев
Влад Васильев - avatar
2 Respuestas
+ 2
explicit casting is when you force a type in another. float myfloat = 3.5 int excast = (int) myfloat so, with '(int)' you are expli it castinh my float to an int var called excast.
13th Jan 2017, 6:08 PM
Nahuel
Nahuel - avatar
+ 1
Thanks, I just tried to make a explicit casting program, but the compiler gave me error
13th Jan 2017, 6:32 PM
Влад Васильев
Влад Васильев - avatar