Take Up Code
34: C# Casting. Only Frogs Can Be Frogs.

34: C# Casting. Only Frogs Can Be Frogs.

Take Up Code

6:42

About this episode

C# also supports both implicit and explicit casts and gives you some different choices when you need to switch types. Plus you have a runtime that is ready to throw an InvalidCastException. But even if you do not hit an exception, there are some things you should be aware of. This is still casting.

More from Take Up Code

This is the first in a series of comments about the book “How To Code C++ From a Simple Idea To a Game You’ll Understand!” Each episode will be short and focused. You can watch the video versions on Y…

1m