C# 6.0 in a Nutshell: The Definitive Reference

Купить бумажную книгу и читать

Купить бумажную книгу

По кнопке выше можно купить бумажные варианты этой книги и похожих книг на сайте интернет-магазина "Лабиринт".

Using the button above you can buy paper versions of this book and similar books on the website of the "Labyrinth" online store.

Реклама. ООО "ЛАБИРИНТ.РУ", ИНН: 7728644571, erid: LatgCADz8.

Название:C# 6.0 in a Nutshell: The Definitive Reference

АвторJoseph Albahari, Ben Albahari

Издательство: O'Reilly Media

Год: 2015

Страниц: 1136

Язык: English

Формат: mobi, epub, pdf

Размер: 19 Mb, 7 Mb, 5 Mb

When you have questions about C# 6.0 or the .NET CLR and its core Framework assemblies, this bestselling guide has the answers you need. C# has become a language of unusual flexibility and breadth since its premiere in 2000, but this continual growth means there’s still much more to learn.

Organized around concepts and use cases, this thoroughly updated sixth edition provides intermediate and advanced programmers with a concise map of C# and .NET knowledge. Dive in and discover why this Nutshell guide is considered the definitive reference on C#.

Get up to speed with all aspects of the C# language, from the basics of syntax and variables, to advanced topics such as pointers and operator overloading

Dig deep into LINQ via three chapters dedicated to the topic

Learn about dynamic, asynchronous, and parallel programming

Work with .NET features, including XML, networking, serialization, reflection, security, application domains, and code contracts

Explore the new C# 6.0 compiler-as-a-service, Roslyn

 

Chapter 1Introducing C# and the .NET Framework

Object Orientation

Type Safety

Memory Management

Platform Support

C#’s Relationship with the CLR

The CLR and .NET Framework

C# and Windows Runtime

What’s New in C# 6.0

What Was New in C# 5.0

What Was New in C# 4.0

What Was New in C# 3.0

Chapter 2C# Language Basics

A First C# Program

Syntax

Type Basics

Numeric Types

Boolean Type and Operators

Strings and Characters

Arrays

Variables and Parameters

Expressions and Operators

Null Operators

Statements

Namespaces

Chapter 3Creating Types in C#

Classes

Inheritance

The object Type

Structs

Access Modifiers

Interfaces

Enums

Nested Types

Generics

Chapter 4Advanced C#

Delegates

Events

Lambda Expressions

Anonymous Methods

try Statements and Exceptions

Enumeration and Iterators

Nullable Types

Operator Overloading

Extension Methods

Anonymous Types

Dynamic Binding

Attributes

Caller Info Attributes (C# 5)

Unsafe Code and Pointers

Preprocessor Directives

XML Documentation

Chapter 5Framework Overview

The CLR and Core Framework

Applied Technologies

Chapter 6Framework Fundamentals

String and Text Handling

Dates and Times

Dates and Time Zones

Formatting and Parsing

Standard Format Strings and Parsing Flags

Other Conversion Mechanisms

Globalization

Working with Numbers

Enums

Tuples

The Guid Struct

Equality Comparison

Order Comparison

Utility Classes

Chapter 7Collections

Enumeration

The ICollection and IList Interfaces

The Array Class

Lists, Queues, Stacks, and Sets

Dictionaries

Customizable Collections and Proxies

Plugging in Equality and Order

Chapter 8LINQ Queries

Getting Started

Fluent Syntax

Query Expressions

Deferred Execution

Subqueries

Composition Strategies

Projection Strategies

Interpreted Queries

LINQ to SQL and Entity Framework

Building Query Expressions

Chapter 9LINQ Operators

Overview

Filtering

Projecting

Joining

Ordering

Grouping

Set Operators

Conversion Methods

Element Operators

Aggregation Methods

Quantifiers

Generation Methods

Chapter 10LINQ to XML

Architectural Overview

X-DOM Overview

Instantiating an X-DOM

Navigating and Querying

Updating an X-DOM

Working with Values

Documents and Declarations

Names and Namespaces

Annotations

Projecting into an X-DOM

Chapter 11Other XML Technologies

XmlReader

XmlWriter

Patterns for Using XmlReader/XmlWriter

XSD and Schema Validation

XSLT

Chapter 12Disposal and Garbage Collection

IDisposable, Dispose, and Close

Automatic Garbage Collection

Finalizers

How the Garbage Collector Works

Managed Memory Leaks

Weak References

Chapter 13Diagnostics and Code Contracts

Conditional Compilation

Debug and Trace Classes

Code Contracts Overview

Preconditions

Postconditions

Assertions and Object Invariants

Contracts on Interfaces and Abstract Methods

Dealing with Contract Failure

Selectively Enforcing Contracts

Static Contract Checking

Debugger Integration

Processes and Process Threads

StackTrace and StackFrame

Windows Event Logs

Performance Counters

The Stopwatch Class

Chapter 14Concurrency and Asynchrony

Introduction

Threading

Tasks

Principles of Asynchrony

Asynchronous Functions in C#

Asynchronous Patterns

Obsolete Patterns

Chapter 15Streams and I/O

Stream Architecture

Using Streams

Stream Adapters

Compression Streams

Working with ZIP Files

File and Directory Operations

File I/O in Windows Runtime

Memory-Mapped Files

Isolated Storage

Chapter 16Networking

Network Architecture

Addresses and Ports

URIs

Client-Side Classes

Working with HTTP

Writing an HTTP Server

Using FTP

Using DNS

Sending Mail with SmtpClient

Using TCP

Receiving POP3 Mail with TCP

TCP in Windows Runtime

Chapter 17Serialization

Serialization Concepts

The Data Contract Serializer

Data Contracts and Collections

Extending Data Contracts

The Binary Serializer

Binary Serialization Attributes

Binary Serialization with ISerializable

XML Serialization

Chapter 18Assemblies

What’s in an Assembly

Strong Names and Assembly Signing

Assembly Names

Authenticode Signing

The Global Assembly Cache

Resources and Satellite Assemblies

Resolving and Loading Assemblies

Deploying Assemblies Outside the Base Folder

Packing a Single-File Executable

Working with Unreferenced Assemblies

Chapter 19Reflection and Metadata

Reflecting and Activating Types

Reflecting and Invoking Members

Reflecting Assemblies

Working with Attributes

Dynamic Code Generation

Emitting Assemblies and Types

Emitting Type Members

Emitting Generic Methods and Types

Awkward Emission Targets

Parsing IL

Chapter 20Dynamic Programming

The Dynamic Language Runtime

Numeric Type Unification

Dynamic Member Overload Resolution

Implementing Dynamic Objects

Interoperating with Dynamic Languages

Chapter 21Security

Permissions

Code Access Security (CAS)

Allowing Partially Trusted Callers

The Transparency Model

Sandboxing Another Assembly

Operating System Security

Identity and Role Security

Cryptography Overview

Windows Data Protection

Hashing

Symmetric Encryption

Public Key Encryption and Signing

Chapter 22Advanced Threading

Synchronization Overview

Exclusive Locking

Locking and Thread Safety

Nonexclusive Locking

Signaling with Event Wait Handles

The Barrier Class

Lazy Initialization

Thread-Local Storage

Interrupt and Abort

Suspend and Resume

Timers

Chapter 23Parallel Programming

Why PFX?

PLINQ

The Parallel Class

Task Parallelism

Working with AggregateException

Concurrent Collections

BlockingCollection

Chapter 24Application Domains

Application Domain Architecture

Creating and Destroying Application Domains

Using Multiple Application Domains

Using DoCallBack

Monitoring Application Domains

Domains and Threads

Sharing Data Between Domains

Chapter 25Interoperability

Calling into Native DLLs

Type Marshaling

Callbacks from Unmanaged Code

Simulating a C Union

Shared Memory

Mapping a Struct to Unmanaged Memory

COM Interoperability

Calling a COM Component from C#

Embedding Interop Types

Primary Interop Assemblies

Exposing C# Objects to COM

Chapter 26Regular Expressions

Regular Expression Basics

Quantifiers

Zero-Width Assertions

Groups

Replacing and Splitting Text

Cookbook Regular Expressions

Regular Expressions Language Reference

Chapter 27The Roslyn Compiler

Roslyn Architecture

Syntax Trees

Compilations and Semantic Models

Recommended for You

C# 6.0 Cookbook C# 6.0 Cookbook Print: $54.99

Programming C# 6.0 Programming C# 6.0 Ebook: $50.99

C# 5.0 in a Nutshell C# 5.0 in a Nutshell Print: $54.99

Related Content

Book Sampler

Customer Reviews

Not yet rated. Be the first to Write a Review

Buy 2 Get 1 Free Free Shipping Guarantee

Buying Options

Immediate Access - Go Digital what's this?

Ebook: $50.99

Formats: ePub, Mobi, PDF

Print & Ebook: $65.99

Pre-Order Print: $59.99

November 2015 (est.)

Safari Books Online - Read now >

Essential Links

View/Submit Errata

Media Praise

Ask a Question

Bulk Discounts & Licensing

View All RSS Feeds >

© 2015, O'Reilly Media, Inc.

(707) 827-7019(800) 889-8969

All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.

About O'Reilly

Academic Solutions

Jobs

Contacts

Corporate Information

Press Room

Privacy Policy

Terms of Service

Writing for O'Reilly

Community

Authors

Community & Featured Users

Forums

Membership

Newsletters

O'Reilly Answers

RSS Feeds

User Groups

O'Reilly Chimera (beta)

Partner Sites

makezine.com

makerfaire.com

craftzine.com

Ignite Talks

O'Reilly Insights on Forbes.com

Shop O'Reilly

Customer Service

Contact Us

Shipping Information

Ordering & Payment

Affiliate Program

The O'Reilly Guarantee

Recently Viewed

mobi

epub

pdf

Дата создания страницы: