4 options
C# 7.1 and .NET core 2.0 - modern cross-platform development / Mark J. Price.
- Format:
- Book
- Author/Creator:
- Price, Mark J., author.
- Language:
- English
- Subjects (All):
- Microsoft Visual studio.
- Microsoft .NET Framework.
- Computer programs.
- Physical Description:
- 1 online resource (1 volume) : illustrations
- Edition:
- Third edition.
- Other Title:
- C sharp seven and .NET Core modern cross-platform development
- Place of Publication:
- Birmingham, [England] ; Mumbai, [India] : Packt Publishing, 2017.
- System Details:
- text file
- Biography/History:
- Price Mark J. : Mark J. Price is a Microsoft Specialist: Programming in C# and Architecting Microsoft Azure Solutions, with over 20 years' experience. Since 1993, he has passed more than 80 Microsoft programming exams and specializes in preparing others to pass them. Between 2001 and 2003, Mark was employed to write official courseware for Microsoft in Redmond, USA. His team wrote the first training courses for C# while it was still an early alpha version. While with Microsoft, he taught "train-the-trainer" classes to get other MCTs up-to-speed on C# and. NET. Mark holds a Computer Science BSc. Hons. Degree.
- Summary:
- C# 7.1 and .NET Core 2.0 – Modern Cross-Platform Development, Third Edition is a practical guide to creating powerful cross-platform applications with C# 7 and .NET Core 2.0. About This Book Build modern, cross-platform applications with .NET Core 2.0 Get up to speed with C#, and up to date with all the latest features of C# 7.1 Start creating professional web applications with ASP.NET Core 2.0 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.1 and .NET Core 2.0 Explore ASP.NET Core 2.0 and learn how to create professional websites, services, and applications Improve your application's performance using multitasking Use Entity Framework Core and LINQ to query and manipulate data Master object-oriented programming with C# to increase code reuse and efficiency Familiarize yourself with cross-device app development using the Universal Windows Platform Protect and manage your files and data with encryption, streams, and serialization Get started with mobile app development using Xamarin.Forms Preview the nullable reference type feature of C# 8 In Detail C# 7.1 and .NET Core 2.0 – Modern Cross-Platform Development, Third Edition, is a practical guide to creating powerful cross-platform applications with C# 7.1 and .NET Core 2.0. It gives readers of any experience level a solid foundation in C# and .NET. The first part of the book runs you through the basics of C#, as well as debugging functions and object-oriented programming, before taking a quick tour through the latest features of C# 7.1 such as default literals, tuples, inferred tuple names, pattern matching, out variables, and more. After quickly taking you through C# and how .NET works, this book dives into the .NET Standard 2.0 class libraries, covering topics such as packaging and deploying your own libraries, and using common libraries for working with collections, performance, monitoring, serialization, files, databases, and encryption. The final section of the book demonstrates the major types of application that you can build and deploy cross-device and cross-platform. In this section, you'll learn about websites, web applicati...
- Contents:
- Cover
- Copyright
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Customer Feedback
- Table of Contents
- Preface
- Chapter 1: Hello, C#! Welcome, .NET Core!
- Setting up your development environment
- Using alternative C# IDEs
- Deploying cross-platform
- Installing Microsoft Visual Studio 2017
- Choosing workloads
- Choosing additional components
- Installing Microsoft Visual Studio Code
- Installing Microsoft Visual Studio Code for macOS
- Installing .NET Core SDK for macOS
- Installing Node Package Manager for macOS
- Installing the Visual Studio Code extension for C#
- Installing Visual Studio for Mac
- Installing Xcode
- Downloading and installing Visual Studio for Mac
- Understanding .NET
- Understanding .NET Framework
- Understanding the Mono and Xamarin projects
- Understanding .NET Core
- Understanding .NET Standard
- Understanding .NET Native
- Comparing .NET technologies
- Writing and compiling code using the .NET Core CLI tool
- Writing code using a simple text editor
- If you are using Windows Notepad
- If you are using macOS TextEdit
- Creating and compiling apps using the .NET Core CLI tool
- Creating a console application at Command Prompt
- Restoring packages, compiling code, and running the application
- Fixing compiler errors
- Understanding intermediate language
- Writing and compiling code using Visual Studio 2017
- Writing code using Microsoft Visual Studio 2017
- Compiling code using Visual Studio 2017
- Fixing mistakes with the error list
- Adding existing projects to Visual Studio 2017
- Autoformatting code
- Experimenting with C# Interactive
- Other useful windows
- Writing and compiling code using Visual Studio Code
- Writing code using Visual Studio Code
- Compiling code using Visual Studio Code
- Autoformatting code.
- Writing and compiling code using Visual Studio for Mac
- Next steps
- Managing source code with GitHub
- Using Git with Visual Studio 2017
- Using the Team Explorer window
- Cloning a GitHub repository
- Managing a GitHub repository
- Using Git with Visual Studio Code
- Configuring Git at the command line
- Managing Git with Visual Studio Code
- Practicing and exploring
- Exercise 1.1 - Test your knowledge
- Exercise 1.2 - Practice C# anywhere
- Exercise 1.3 - Explore topics
- Summary
- Part 1: C# 7.1
- Chapter 2: Speaking C#
- Understanding C# basics
- Using Visual Studio 2017
- Using Visual Studio Code on macOS, Linux, or Windows
- C# grammar
- Statements
- Comments
- Blocks
- C# vocabulary
- Help for writing correct code
- Verbs are methods
- Nouns are types, fields, and variables
- Revealing the extent of the C# vocabulary
- Building and running with Visual Studio 2017
- Building and running with Visual Studio Code
- Adding more types with Visual Studio 2017 and Visual Studio Code
- Declaring variables
- Naming variables
- Literal values
- Storing text
- Storing numbers
- Storing whole numbers
- C# 7 improvements
- Storing real numbers
- Using Visual Studio Code
- Writing code to explore numbers
- Comparing double and decimal types
- Storing Booleans
- The object type
- The dynamic type
- Local variables
- Specifying the type of a local variable
- Inferring the type of a local variable
- Making a value type nullable
- Understanding nullable reference types
- The billion-dollar mistake
- Changing the defaults for nullable types in C# 8.0
- Checking for null
- Storing multiple values in an array
- Exploring console applications further
- Displaying output to the user
- Getting input from the user
- Importing a namespace
- Simplifying the usage of the console.
- Reading arguments and working with arrays
- Passing arguments with Visual Studio 2017
- Passing arguments with Visual Studio Code
- Viewing the output
- Enumerating arguments
- Running on Windows
- Running on macOS
- Handling platforms that do not support an API
- Operating on variables
- Experimenting with unary operators
- Experimenting with arithmetic operators
- Comparison and Boolean operators
- Exercise 2.1 - Test your knowledge
- Exercise 2.2 - Practice number sizes and ranges
- Exercise 2.3 - Explore topics
- Chapter 3: Controlling the Flow and Converting Types
- Selection statements
- The if statement
- The code
- Pattern matching with the if statement
- The switch statement
- Pattern matching with the switch statement
- Iteration statements
- The while statement
- The do statement
- The for statement
- The foreach statement
- Casting and converting between types
- Casting from numbers to numbers
- Casting numbers implicitly
- Casting numbers explicitly
- Using the convert type
- Rounding numbers
- Converting from any type to a string
- Converting from a binary object to a string
- Parsing from strings to numbers or dates and times
- Handling exceptions when converting types
- The try statement
- Catching all exceptions
- Catching specific exceptions
- Checking for overflow
- The checked statement
- The unchecked statement
- Looking for help
- Microsoft Docs and MSDN
- Go to definition
- Stack Overflow
- Subscribing to blogs
- Design patterns
- Singleton pattern
- Exercise 3.1 - Test your knowledge
- Exercise 3.2 - Explore loops and overflow
- Exercise 3.3 - Practice loops and operators.
- Exercise 3.4 - Practice exception handling
- Exercise 3.5 - Explore topics
- Chapter 4: Writing, Debugging, and Testing Functions
- Writing functions
- Writing a times table function
- Writing a function that returns a value
- Writing mathematical functions
- Formatting numbers for output
- Calculating factorials with recursion
- Debugging an application during development
- Creating an application with a deliberate bug
- Setting a breakpoint
- The debugging toolbar
- Debugging windows
- Stepping through code
- Customizing breakpoints
- Logging during development and runtime
- Instrumenting with Debug and Trace
- Writing to the default trace listener
- Configuring trace listeners
- Switching trace levels
- Unit testing functions
- Creating a class library that needs testing with Visual Studio 2017
- Creating a unit test project with Visual Studio 2017
- Creating a class library that needs testing with Visual Studio Code
- Writing unit tests
- Running unit tests with Visual Studio 2017
- Running unit tests with Visual Studio Code
- Exercise 4.1 - Test your knowledge
- Exercise 4.2 - Practice writing functions with debugging and unit testing
- Exercise 4.3 - Explore topics
- Chapter 5: Building Your Own Types with Object-Oriented Programming
- Talking about OOP
- Building class libraries
- Creating a class library with Visual Studio 2017
- Creating a class library with Visual Studio Code
- Defining a class
- Instantiating a class
- Referencing an assembly using Visual Studio 2017
- Referencing an assembly using Visual Studio Code
- Managing multiple projects with Visual Studio Code
- Inheriting from System.Object
- Storing data with fields
- Defining fields
- Understanding access modifiers
- Storing a value using the enum keyword.
- Storing multiple values using collections
- Making a field static
- Making a field constant
- Making a field read-only
- Initializing fields with constructors
- Setting fields with default literal
- Writing and calling methods
- Combining multiple values with tuples
- Defining methods with tuples
- Naming the fields of a tuple
- Inferring tuple names
- Deconstructing tuples
- Defining and passing parameters to methods
- Overloading methods
- Optional parameters and named arguments
- Controlling how parameters are passed
- Splitting classes using partial
- Controlling access with properties and indexers
- Defining read-only properties
- Defining settable properties
- Defining indexers
- Exercise 5.1 - Test your knowledge
- Exercise 5.2 - Explore topics
- Chapter 6: Implementing Interfaces and Inheriting Classes
- Setting up a class library and console application
- Defining the classes
- Simplifying methods with operators
- Implementing some functionality with a method
- Implementing some functionality with an operator
- Defining local functions
- Raising and handling events
- Calling methods using delegates
- Defining events
- Using Visual Studio 2017 or Visual Studio Code
- Implementing interfaces
- Common interfaces
- Comparing objects when sorting
- Attempting to sort objects without a method to compare
- Defining a method to compare
- Defining a separate comparer
- Making types more reusable with generics
- Making a generic type
- Making a generic method
- Managing memory with reference and value types
- Defining a struct type
- Releasing unmanaged resources
- Ensuring that dispose is called
- Inheriting from classes
- Extending classes.
- Hiding members.
- Notes:
- Includes bibliographical references and index.
- Description based on online resource; title from PDF title page (EBC, viewed January 3, 2018).
- ISBN:
- 9781788478694
- 178847869X
- OCLC:
- 1019129025
The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.