C# 9 and .NET 5 – Modern Cross-Platform Development
eBook - ePub

C# 9 and .NET 5 – Modern Cross-Platform Development

  1. 822 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

C# 9 and .NET 5 – Modern Cross-Platform Development

About this book

Publisher's Note: Microsoft stopped supporting.NET 5 in May 2022. The newer 8th edition of the book is available that covers.NET 8 (end-of-life November 2026) with C# 12 and EF Core 8.Purchase of the print or Kindle book includes a free PDF eBook

Key Features

  • Explore the newest additions to C# 9, the.NET 5 class library, Entity Framework Core and Blazor
  • Strengthen your command of ASP.NET Core 5.0 and create professional websites and services
  • Build cross-platform apps for Windows, macOS, Linux, iOS, and Android

Book Description

In C# 9 and.NET 5 – Modern Cross-Platform Development, Fifth Edition, expert teacher Mark J. Price gives you everything you need to start programming C# applications.This latest edition uses the popular Visual Studio Code editor to work across all major operating systems. It is fully updated and expanded with a new chapter on the Microsoft Blazor framework.The book's first part teaches the fundamentals of C#, including object-oriented programming and new C# 9 features such as top-level programs, target-typed new object instantiation, and immutable types using the record keyword. Part 2 covers the.NET APIs, for performing tasks like managing and querying data, monitoring and improving performance, and working with the file system, async streams, serialization, and encryption. Part 3 provides examples of cross-platform apps you can build and deploy, such as websites and services using ASP.NET Core or mobile apps using Xamarin.Forms. The best type of application for learning the C# language constructs and many of the.NET libraries is one that does not distract with unnecessary application code. For that reason, the C# and.NET topics covered in Chapters 1 to 13 feature console applications. In Chapters 14 to 20, having mastered the basics of the language and libraries, you will build practical applications using ASP.NET Core, Model-View-Controller (MVC), and Blazor.By the end of the book, you will have acquired the understanding and skills you need to use C# 9 and.NET 5 to create websites, services, and mobile apps.

What you will learn

  • Build your own types with object-oriented programming
  • Query and manipulate data using LINQ
  • Build websites and services using ASP.NET Core 5
  • Create intelligent apps using machine learning
  • Use Entity Framework Core and work with relational databases
  • Discover Windows app development using the Universal Windows Platform and XAML
  • Build rich web experiences using the Blazor framework
  • Build mobile applications for iOS and Android using Xamarin.Forms

Who this book is for

This book is best for C# and.NET beginners, or programmers who have worked with C# in the past but feel left behind by the changes in the past few years. This book doesn't expect you to have any C# or.NET experience; however, you should have a general understanding of programming.Students and professionals with a science, technology, engineering, or mathematics (STEM) background can certainly benefit from this book.

]]>

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere β€” even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access C# 9 and .NET 5 – Modern Cross-Platform Development by Mark J. Price in PDF and/or ePUB format, as well as other popular books in Computer Science & Object Oriented Programming. We have over one million books available in our catalogue for you to explore.

Index

Symbols
.NET
app models 465
concepts 8
old versions, removing 13
platforms and tools 16
Silverlight plugin, using in 474
.NET 5 10, 225, 226
application types, on Linux 252
application types, on macOS 252
application types, on Windows 252
features 14
.NET Core 2.0, performance improving to 229
.NET Framework, porting to 252
porting 252
porting, benefits 252
using, in cross-platform development 475
versus .NET Framework 253
.NET 5.0 228
reference link 229
.NET 5 class library
creating 173, 174
referencing 173, 174
.NET 5, performance improvement
reference link 229
.NET APIs
reference link 226
.NET application
publishing, for deployment 237
size, reducing with app trimming 242
.NET blog
subscribing to 26
.NET components 229
BCL, assemblies in NuGet packages (CoreFX) 230
Common Language Runtime (CoreCLR) 229
language compilers 229
.NET Core
features 14
.NET Core 1.0 226
reference link 227
.NET Core 1.1 227
reference link 227
.NET Core 2.0 227
performance, improving to .NET 5 229
reference link 227
.NET Core 2.1 227
.NET Core 2.2 228
reference link 228
.NET Core 3.0 228
reference link 228
.NET Framework 8
porting, to .NET 5 252
versus .NET 5 253
.NET Framework versions 226
.NET 5.0 228
.NET Core 1.0 226
.NET Core 1.1 227
.NET Core 2.0 227
.NET Core 2.1 227
.NET Core 2.2 228
.NET Core 3.0 228
.NET MAUI
reference link 476
.NET Portability Analyzer 253
reference link 253
.NET Runtime versions 12
.NET SDK versions 12
.NET standard
used, for sharing code with legacy platforms 235
.NET Standard
reference link 226
.NET Standard 2.0
class library, creating 236
.NET Standard 2.1
reference link 226
.NET Standard libraries
using 253, 254, 255
.NET support 11
.NET technologies
comparing 17
.NET type
C# keywords, relating to 234, 235
.NET types
exceptions, inheriting 217, 218
extending 217, 219
inheriting 217
Windows Communication Foundation (WCF) 665
A
access
controlling, with indexers 169
controlling, with properties 169
synchronizing, to shared resources 452
access modifier 144
ac...

Table of contents

  1. Preface
  2. Hello, C#! Welcome, .NET!
  3. Speaking C#
  4. Controlling Flow and Converting Types
  5. Writing, Debugging, and Testing Functions
  6. Building Your Own Types with Object-Oriented Programming
  7. Implementing Interfaces and Inheriting Classes
  8. Understanding and Packaging .NET Types
  9. Working with Common .NET Types
  10. Working with Files, Streams, and Serialization
  11. Protecting Your Data and Applications
  12. Working with Databases Using Entity Framework Core
  13. Querying and Manipulating Data Using LINQ
  14. Improving Performance and Scalability Using Multitasking
  15. Introducing Practical Applications of C# and .NET
  16. Building Websites Using ASP.NET Core Razor Pages
  17. Building Websites Using the Model-View-Controller Pattern
  18. Building Websites Using a Content Management System
  19. Building and Consuming Web Services
  20. Building Intelligent Apps Using Machine Learning
  21. Building Web User Interfaces Using Blazor
  22. Building Cross-Platform Mobile Apps
  23. Index