Book Image

Beginning Modern C# and .NET Development

By : Reynald Adolphe
Book Image

Beginning Modern C# and .NET Development

By: Reynald Adolphe

Overview of this book

The course will initially begin with familiarizing you to the different .NET technologies and Visual Studio 2017. Beginning from the basic concepts of declaring and working with variables, we move on to writing code that makes decisions, repeats a block of statements, converts between types, and handles errors. You will also learn about .NET Core and its class library assemblies, and packages of types that are defined in .NET Standard that allow your applications to connect existing components together to perform common practical tasks. You will then learn to make your own types using object-oriented programming (OOP) and learn how to read and write to databases. You will then see what can be achieved with Extensible Application Markup Language (XAML) when defining the user interface for a graphical app, in particular, for Universal Windows Platform (UWP). Finally, we look at building web applications with a modern HTTP architecture on the server side using Microsoft ASP.NET Core MVC. All the resources and support files are available at https://github.com/PacktPublishing/Beginning-Modern-CSharp-and-DotNet-Development---eLearning
Table of Contents (7 chapters)
Chapter 3
Controlling the Flow, Converting Types, and Handling Exceptions
Content Locked
Section 4
Casting and Converting Between Types
In this video, you will often need to convert between different types. Some of them are: - Cast an int variable into a double variable - Cast a double variable into an int variable - Use the System.Convert type for conversions - Check how numbers are rounded in C# - Convert to the string type - Parse to numbers or dates and times