|
The closest equivalent to the standard C# casting operator is the
safe_cast operator in C++/CLI or the __try_cast operator
in Managed C++. The behavior of these C++ operators is subtly
different from the C# casting operator though, so you should always
test the behavior of your new C++ code.
The C# as operator is converted to the C++ dynamic_cast
operator.
If you need to convert from C# to C++
and you are depending on the results being reliable and accurate,
then you will want to have
Instant C++
C# Edition, the best C# to C++ converter, at your fingertips.
|