3 options
C# 7 and .NET Core cookbook : quick solutions to common programming problems with the latest features of C# 7.0, .NET Core 1.1, and Visual Studio 2017 / Dirk Strauss.
- Format:
- Book
- Author/Creator:
- Strauss, Dirk, author.
- Language:
- English
- Subjects (All):
- Microsoft Visual studio.
- C# (Computer program language).
- Microsoft .NET Framework.
- Application software--Development.
- Application software.
- Internet programming.
- Physical Description:
- 1 online resource (1 volume) : illustrations
- Edition:
- 1st edition
- Other Title:
- C sharp seven and .NET Core cookbook
- Place of Publication:
- Birmingham, UK : Packt Publishing, 2017.
- System Details:
- text file
- Summary:
- Quick solutions to common programming problems with the latest features of C# 7.0, .NET Core 1.1, and Visual Studio 2017 About This Book Easy-to-follow recipes to get you up-and-running with the new features of C# 7 and .NET Core 1.1 Practical solutions to assist you with microservices and serverless computing in C# Explore the new Visual Studio environment and write more secure code in it Who This Book Is For The book will appeal to C# and .NET developers who have a basic familiarity with C# and the Visual Studio 2015 environment What You Will Learn Writing better and less code to achieve the same result as in previous versions of C# Working with analyzers in Visual Studio Working with files, streams, and serialization Writing high-performant code in C# and understanding multi-threading Demystifying the Rx library using Reactive extensions Exploring .Net Core 1.1 and ASP.NET MVC Securing your applications and learning new debugging techniques Designing and building a microservice architecture Using Azure and AWS for serverless computing with C# In Detail C# has recently been open-sourced and C# 7 comes with a host of new features for building powerful, cross-platform applications. This book will be your solution to some common programming problems that you come across with C# and will also help you get started with .NET Core 1.1. Through a recipe-based approach, this book will help you overcome common programming challenges and get your applications ready to face the modern world. We start by running you through new features in C# 7, such as tuples, pattern matching, and so on, giving you hands-on experience with them. Moving forward, you will work with generics and the OOP features in C#. You will then move on to more advanced topics, such as reactive extensions, Regex, code analyzers, and asynchronous programming. This book will also cover new, cross-platform .NET Core 1.1 features and teach you how to utilize .NET Core on macOS. Then, we will explore microservices as well as serverless computing and how these benefit modern developers. Finally, you will learn what you can do with Visual Studio 2017 to put mobile application development across multiple platforms within the reach of any developer. Style and approach A unique recipe-based guide that will help you gain a solid understanding of the new concepts in C# 7.0 and Visual Studio 2017
- Contents:
- Cover
- Credits
- Copyright
- Foreword
- About the Author
- About the Reviewer
- www.PacktPub.com
- Customer Feedback
- Contents
- Preface
- Chapter 1: New Features in C# 7.0
- Introduction
- Working with Tuples - getting started
- Getting ready
- How to do it...
- How it works...
- Working with Tuples - going deeper
- Pattern matching
- Out variables
- Deconstruction
- Local functions
- Improvements to literals
- Ref returns and locals
- Generalized async return types
- Expression bodies for accessors, constructors, and finalizers
- throw expressions
- Chapter 2: Classes and Generics
- Creating and implementing an abstract class
- Creating and implementing an interface
- Creating and using a generic class or method
- Creating and using a generic interface
- Chapter 3: Object-Oriented Programming in C#
- Using inheritance in C#
- Using abstraction
- Leveraging encapsulation
- How to do it.
- How it works...
- Implementing polymorphism
- Single responsibility principle
- Open/closed principle
- Exception handling
- Chapter 4: Code Analyzers in Visual Studio
- Finding and installing analyzers
- Creating a code analyzer
- Creating a custom code analyzer
- Deploying your code analyzer within your organization only
- Chapter 5: Regular Expressions
- Getting started with regex - Matching a valid date
- Sanitizing input
- Dynamic regex matching
- Chapter 6: Working with Files, Streams, and Serialization
- Creating and extracting ZIP archives
- In-memory stream compression and decompression
- Async and await file processing
- How to make a custom type serializable?
- Using ISerializable for custom serialization to a FileStream
- Using XmlSerializer
- JSON serializers
- How it works.
- Chapter 7: Making Apps Responsive with Asynchronous Programming
- Return types of asynchronous functions
- Handling tasks in asynchronous programming
- Exception handling in asynchronous programming
- Chapter 8: High Performance Programming Using Parallel and Multithreading in C#
- Creating and aborting a low-priority background thread
- Increasing the maximum thread pool size
- Creating multiple threads
- Locking one thread until the contended resources are available
- Invoking parallel calls to methods using Parallel.Invoke
- Using a parallel foreach loop
- Cancelling a parallel foreach loop
- Catching errors in parallel foreach loops
- Debugging multiple threads
- Chapter 9: Composing Event-Based Programs Using Reactive Extensions
- Installing Rx
- Events versus observables
- Using LINQ to perform queries
- Using schedulers in Rx
- Debugging lambda expressions
- Chapter 10: Exploring .NET Core 1.1
- Creating a simple .NET Core application and running it on a Mac
- Creating your first ASP.NET Core application
- How it works
- Publishing your ASP.NET Core application
- Chapter 11: ASP.NET Core on the MVC Framework
- Including middleware and why it is useful
- Creating Controllers and using routing
- Rendering Views
- Chapter 12: Choosing and Using a Source Control Strategy
- Setting up Visual Studio account management and determining which source control solution is best for you
- Setting up Visual Studio GitHub integration, checking in code for the first time, and checking in changes
- Working as a team using GitHub, handling and resolving conflicts in code
- Chapter 13: Creating a Mobile Application in Visual Studio
- Installing Xamarin and other required components on your Windows PC and Mac
- Creating a mobile application using Apache Cordova
- Creating an iOS application using Xamarin.Forms and Visual Studio for Mac
- Chapter 14: Writing Secure Code and Debugging in Visual Studio
- Encrypting and storing passwords correctly
- Using SecureString in code
- Securing sensitive parts of the App.config/web.config
- Preventing SQL injection attacks
- Using IntelliTrace, diagnostic tools, and historical debugging
- Setting conditional breakpoints
- Using PerfTips to identify bottlenecks in code
- Chapter 15: Creating Microservices on Azure Service Fabric
- Downloading and installing Service Fabric
- Creating a Service Fabric application with a stateless actor service
- Using Service Fabric Explorer
- Chapter 16: Azure and Serverless Computing
- Creating an Azure function
- Providing print functionality with DocRaptor
- Using AWS and S3
- Creating C# Lambda functions with AWS
- Index.
- Notes:
- Description based on online resource; title from title page (Safari, viewed May 11, 2017).
- ISBN:
- 9781787289208
- 1787289206
- OCLC:
- 987006612
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.