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 4
NET Deep Dive
Content Locked
Section 2
Building Class Libraries
This video explains how class library assemblies group types together into easily deployable units (DLL files). Apart from when you learned about unit testing, you have only created console applications to contain your code. To make the code that you write reusable across multiple projects, you should put it in class library assemblies, just like Microsoft does. The steps involved in building class libraries are: - Create a class library with Visual Studio 2017 - Import a namespace - Define methods with tuples - Define read-only properties - Define an indexer - Define an event