Book description
Modern Cross-Platform Development
About This Book
Build modern, cross-platform applications with .NET Core
Get up to speed with C#, and up to date with all the latest features of C# 7
Start creating professional web applications with ASP.NET Core
Who This Book Is For
This book is targeted towards readers who have some prior programming experience or have a science, technology, engineering, or mathematics (STEM) background, and want to gain a solid foundation with C# and to be introduced to the types of applications they could build and will work cross-platform on Windows, Linux, and macOS.
What You Will Learn
Build cross-platform applications using C# 7 and .NET Core
Explore ASP.NET Core and learn how to create professional web applications
Improve your application’s performance using multitasking
Use Entity Framework Core and find out how to build code-first databases
Master object-oriented programming with C# to increase code reuse and efficiency
Familiarize yourself with cross-device app development using the Universal Windows Platform and XAML
Query and manipulate data using LINQ
Protect your data by using encryption and hashing
In Detail
If you want to build powerful cross-platform applications with C# 7 and .NET Core, then this book is for you.
First, we’ll run you through the basics of C#, as well as object-oriented programming, before taking a quick tour through the latest features of C# 7 such as tuples, pattern matching, out variables, and so on.
After quickly taking you through C# and how .NET works, we’ll dive into the .NET Standard 1.6 class libraries, covering topics such as performance, monitoring, debugging, serialization and encryption.
The final section will demonstrate the major types of application that you can build and deploy cross-device and cross-platform. In this section, we’ll cover Universal Windows Platform (UWP) apps, web applications, mobile apps, and web services. Lastly, we’ll look at how you can package and deploy your applications so that they can be hosted on all of today’s most popular platforms, including Linux and Docker.
By the end of the book, you’ll be armed with all the knowledge you need to build modern, cross-platform applications using C# and .NET Core.
Style and approach
This book takes a step-by-step approach and is filled with exciting projects and fascinating theory. It uses three high-impact sections to equip you with all the tools you’ll need to build modern, cross-platform applications using C# and .NET Core.
Table of contents
-
C# 7 and .NET Core: Modern Cross-Platform Development - Second Edition
- C# 7 and .NET Core: Modern Cross-Platform Development - Second Edition
- Credits
- About the Author
- About the Reviewer
- www.PacktPub.com
- Customer Feedback
- Preface
-
1. Hello, C#! Welcome, .NET Core!
- Choosing your development environment
- Installing Microsoft Visual Studio 2017 for Windows
- Installing Microsoft Visual Studio Code for Windows, macOS, or Linux
- Understanding .NET
- Writing and compiling code using the .NET Core CLI tool
- Writing and compiling code using Microsoft Visual Studio 2017
- Writing and compiling code using Microsoft Visual Studio Code
- Managing source code with GitHub
- Practicing and exploring
- Summary
-
2. Speaking C#
- Understanding C# basics
- Declaring variables
- Building console applications
- Operating on variables
- Practicing and exploring
- Summary
- 3. Controlling the Flow, Converting Types, and Handling Exceptions
-
4. Using .NET Standard Types
- Using assemblies and namespaces
- Storing and manipulating text
- Storing data with collections
- Internationalizing an application
- Practicing and exploring
- Summary
- 5. Debugging, Monitoring, and Testing
-
6. Building Your Own Types with Object-Oriented Programming
- Talking about OOP
- Building class libraries
- Storing data with fields
- Writing and calling methods
- Controlling how parameters are passed
- Splitting classes using partial
- Controlling access with properties and indexers
- Practicing and exploring
- Summary
-
7. Implementing Interfaces and Inheriting Classes
- Setting up a class library and console application
- Simplifying methods with operators
- Defining local functions
- Raising and handling events
- Implementing interfaces
- Managing memory with reference and value types
- Inheriting from classes
- Casting within inheritance hierarchies
- Inheriting and extending .NET types
- Practice and explore
- Summary
- 8. Working with Databases Using the Entity Framework Core
- 9. Querying and Manipulating Data with LINQ
- 10. Working with Files, Streams, and Serialization
- 11. Protecting Your Data
- 12. Improving Performance and Scalability with Multitasking
- 13. Building Universal Windows Platform Apps Using XAML
-
14. Building Web Applications Using ASP.NET Core MVC
- Understanding ASP.NET Core
- Exploring an ASP.NET Core MVC web application
- ASP.NET Core MVC controllers
- ASP.NET Core MVC models
- ASP.NET Core MVC views
- Taking ASP.NET Core MVC further
- Practicing and exploring
- Summary
-
15. Building Mobile Apps Using Xamarin.Forms and ASP.NET Core Web API
- Understanding Xamarin.Forms
- Building services using ASP.NET Core Web API and Visual Studio Code
-
Building mobile apps using Xamarin.Forms and Visual Studio for Mac
- Creating a Xamarin.Forms project
- Creating a model
- Creating an interface for dialing phone numbers and implement for iOS and Android
- Creating views for the customers list and customer details
- Test the mobile app with iOS
- Adding NuGet packages for calling a REST service
- Getting customers from the service
- Practicing and exploring
- Summary
- 16. Packaging and Deploying Your Code Cross-Platform
-
A. Answers to the Test Your Knowledge Questions
- Chapter 1 - Hello, C#! Welcome, .NET Core!
- Chapter 2 - Speaking C#
- Chapter 3 - Controlling the Flow, Converting Types, and Handling Exceptions
- Chapter 4 - Using .NET Standard Types
- Chapter 5 - Debugging, Monitoring, and Testing
- Chapter 6 - Building Your Own Types with Object-Oriented Programming
- Chapter 7 - Implementing Interfaces and Inheriting Classes
- Chapter 8 - Working with Databases Using Entity Framework Core
- Chapter 9 - Querying and Manipulating Data with LINQ
- Chapter 10 - Working with Files, Streams, and Serialization
- Chapter 11 - Protecting Your Data
- Chapter 12 - Improving Performance and Scalability with Multitasking
- Chapter 13 - Building Universal Windows Platform Apps Using XAML
- Chapter 14 - Building Web Applications Using ASP.NET Core MVC
- Chapter 15 - Building Mobile Apps Using Xamarin.Forms and ASP.NET Core Web API
- Chapter 16 - Packaging and Deploying Your Code Cross-Platform
Product information
- Title: C# 7 and .NET Core: Modern Cross-Platform Development - Second Edition
- Author(s):
- Release date: March 2017
- Publisher(s): Packt Publishing
- ISBN: 9781787129559
You might also like
book
C# 9 and .NET 5 – Modern Cross-Platform Development - Fifth Edition
Publisher’s Note: Microsoft stopped supporting .NET 5 in May 2022. The newer 8th edition of the …
book
C# 11 and .NET 7 – Modern Cross-Platform Development Fundamentals - Seventh Edition
Publisher’s Note: Microsoft will stop supporting .NET 7 from May 2024. The newer 8th edition of …
book
C# 12 and .NET 8 – Modern Cross-Platform Development Fundamentals - Eighth Edition
An accessible guide for beginner-to-intermediate programmers to the concepts, real-world applications, and latest features of C# …
book
C# 8.0 and .NET Core 3.0 – Modern Cross-Platform Development - Fourth Edition
Publisher's Note: Microsoft stops supporting .NET Core 3.1 in December 2022. The newer 7th edition of …