Book description
Create powerful cross-platform applications using C# 6, .NET Core 1.0, ASP.NET Core 1.0, and Visual Studio 2015
About This Book
Build modern, cross-platform applications with .NET Core 1.0
Get up-to-speed with C#, and up-to-date with all the latest features of C# 6
Start creating professional web applications with ASP.NET Core 1.0
Who This Book Is For
Are you struggling to get started with C#? Or maybe you're interested in the potential of the new cross-platform features that .NET Core can offer? If so, C# 6 and .NET Core 1.0 is the book for you. While you don't need to know any of the latest features of C# or .NET to get started, it would be beneficial if you have some programming experience.
What You Will Learn
Build cross-platform applications using C# 6 and .NET Core 1.0
Explore ASP.NET Core 1.0 and learn how to create professional web applications
Improve your application’s performance using multitasking
Use Entity Framework Core 1.0 and learn 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
With the release of .NET Core 1.0, you can now create applications for Mac OS X and Linux, as well as Windows, using the development tools you know and love. C# 6 and .NET Core 1.0 has been divided into three high-impact sections to help start putting these new features to work.
First, we'll run you through the basics of C#, as well as object-orient programming, before taking a quick tour through the latest features of C# 6 such as string interpolation for easier variable value output, exception filtering, and how to perform static class imports. We'll also cover both the full-feature, mature .NET Framework and the new, cross-platform .NET Core.
After quickly taking you through C# and how .NET works, we'll dive into the internals of the .NET class libraries, covering topics such as performance, monitoring, debugging, internationalization, serialization, and encryption. We'll look at Entity Framework Core 1.0 and how to develop Code-First entity data models, as well as how to use LINQ to query and manipulate that data.
The final section will demonstrate the major types of applications that you can build and deploy cross-device and cross-platform. In this section, we'll cover Universal Windows Platform (UWP) apps, web applications, and web services. Lastly, we'll help you build a complete application that 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# 6 and .NET Core 1.0Modern Cross-Platform Development
- Table of Contents
- C# 6 and .NET Core 1.0
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Preface
-
1. Hello, C#! Welcome, .NET Core!
- Setting up your development environment
- Understanding .NET Framework, .NET Core, and .NET Native
- Writing and compiling code using the Developer Command Prompt
- Writing and compiling code using Microsoft Visual Studio 2015
- Targeting the .NET Core
- 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 Common .NET Types
- Using assemblies and namespaces
-
Storing and manipulating text
- Getting the length of a string
- Getting the characters of a string
- Splitting a string
- Extracting part of a string
- Checking a string for content
- Other string members
- Building strings efficiently
- Validating input with regular expressions
- The syntax of a regular expression
- Examples of regular expressions
- Storing data with collections
- Practicing and exploring
- Summary
- 5. Using Specialized .NET Types
- 6. Building Your Own Types with Object-Oriented Programming
- 7. Implementing Interfaces and Inheriting Classes
-
8. Working with Relational Data Using the Entity Framework
- Relational Database Management Systems
- Using ADO.NET
- Using Entity Framework 6
- Using Entity Framework Core
- Practicing and exploring
- Summary
-
9. Querying and Manipulating Data with LINQ
- Writing LINQ queries
- Using multiple threads with Parallel LINQ
- Creating your own LINQ extension methods
- Working with LINQ to XML
- Practicing and exploring
- Summary
- 10. Working with Files, Streams, and Serialization
- 11. Protecting Your Data and Applications
- 12. Improving Performance and Scalability with Multitasking
- 13. Building Universal Windows Platform Apps Using XAML
- 14. Building Web Applications and Services Using ASP.NET Core
- 15. Taking C# Cross-Platform
- 16. Building a Quiz
-
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 Common .NET Types
- Chapter 5 – Using Specialized .NET Types
- Chapter 6 – Building Your Own Types with Object-Oriented Programming
- Chapter 7 – Implementing Interfaces and Inheriting Classes
- Chapter 8 – Working with Relational Data Using the Entity Framework
- Chapter 9 – Querying and Manipulating Data with LINQ
- Chapter 10 – Working with Files, Streams, and Serialization
- Chapter 11 – Protecting Your Data and Applications
- Chapter 12 – Improving Performance and Scalability with Multitasking
- Chapter 13 – Building Universal Windows Platform Apps Using XAML
- Chapter 14 – Building Web Applications and Services Using ASP.NET Core
- Chapter 15 – Taking C# Cross-Platform
- Chapter 16 – Building a Quiz
- B. Creating a Virtual Machine for Your Development Environment
- Index
Product information
- Title: C# 6 and .NET Core 1.0: Modern Cross-Platform Development
- Author(s):
- Release date: March 2016
- Publisher(s): Packt Publishing
- ISBN: 9781785285691
You might also like
book
C# 7 and .NET Core: Modern Cross-Platform Development - Second Edition
Modern Cross-Platform Development About This Book Build modern, cross-platform applications with .NET Core Get up to …
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 …
book
C# 7 and .NET: Designing Modern Cross-platform Applications
Explore C# and the .NET Core framework to create applications and optimize them with ASP.NET Core …
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 …