C# 9.0 Pocket Reference: Instant Help for C# 9.0 Programmers
- Length: 264 pages
- Edition: 1
- Language: English
- Publisher: O'Reilly Media
- Publication Date: 2021-02-09
- ISBN-10: 1098101138
- ISBN-13: 9781098101138
- Sales Rank: #654436 (See Top 100 Books)
When you have questions about C# 9.0 or .NET 5, this best-selling guide has the answers you need. C# is a language of unusual flexibility and breadth, but with its continual growth there’s so much more to learn. In the tradition of O’Reilly’s Nutshell guides, this thoroughly updated edition is simply the best one-volume reference to the C# language available today.
Organized around concepts and use cases, C# 9.0 in a Nutshell provides intermediate and advanced programmers with a concise map of C# and .NET that also plumbs significant depths.
- Get up to speed on C#, from syntax and variables to advanced topics such as pointers, records, closures, and patterns
- Dig deep into LINQ with three chapters dedicated to the topic
- Explore concurrency and asynchrony, advanced threading, and parallel programming
- Work with .NET features, including regular expressions, networking, spans, reflection, and cryptography
Joseph Albahari is author of C# 8.0 in a Nutshell, C# 8.0 Pocket Reference, and LINQ Pocket Reference (all from O’Reilly). He also wrote LINQPad, the popular code scratchpad and LINQ querying utility.
A First C# Program Compilation Syntax Identifiers and Keywords Literals, Punctuators, and Operators Comments Type Basics Predefined Type Examples Custom Type Examples Types and Conversions Value Types Versus Reference Types Predefined Type Taxonomy Numeric Types Numeric Literals Numeric Conversions Arithmetic Operators Increment and Decrement Operators Specialized Integral Operations 8- and 16-Bit Integral Types Special Float and Double Values double Versus decimal Real Number Rounding Errors Boolean Type and Operators Equality and Comparison Operators Conditional Operators Strings and Characters String Type Arrays Default Element Initialization Indices and Ranges Multidimensional Arrays Simplified Array Initialization Expressions Variables and Parameters The Stack and the Heap Definite Assignment Default Values Parameters var—Implicitly Typed Local Variables Target-Typed new Expressions (C# 9) Expressions and Operators Assignment Expressions Operator Precedence and Associativity Operator Table Null Operators Null-Coalescing Operator Null-Coalescing Assignment Operator Null-Conditional Operator Statements Declaration Statements Expression Statements Selection Statements Iteration Statements Jump Statements Namespaces The using Directive using static Rules Within a Namespace Aliasing Types and Namespaces Classes Fields Constants Methods Instance Constructors Deconstructors Object Initializers The this Reference Properties Indexers Static Constructors Static Classes Finalizers Partial Types and Methods The nameof Operator Inheritance Polymorphism Casting and Reference Conversions Virtual Function Members Abstract Classes and Abstract Members Hiding Inherited Members Sealing Functions and Classes The base Keyword Constructors and Inheritance Overloading and Resolution The object Type Boxing and Unboxing Static and Runtime Type Checking The GetType Method and typeof Operator Object Member Listing Equals, ReferenceEquals, and GetHashCode The ToString Method Structs Struct Construction Semantics readonly Structs and Functions Access Modifiers Friend Assemblies Accessibility Capping Interfaces Extending an Interface Explicit Interface Implementation Implementing Interface Members Virtually Reimplementing an Interface in a Subclass Default Interface Members Enums Enum Conversions Flags Enums Enum Operators Nested Types Generics Generic Types Generic Methods Declaring Type Parameters typeof and Unbound Generic Types The default Generic Value Generic Constraints Subclassing Generic Types Self-Referencing Generic Declarations Static Data Covariance Contravariance Delegates Writing Plug-In Methods with Delegates Instance and Static Method Targets Multicast Delegates Generic Delegate Types The Func and Action Delegates Delegate Compatibility Events Standard Event Pattern Event Accessors Lambda Expressions Capturing Outer Variables Lambda Expressions Versus Local Methods Anonymous Methods try Statements and Exceptions The catch Clause The finally Block Throwing Exceptions Key Properties of System.Exception Enumeration and Iterators Enumeration Collection Initializers Iterators Iterator Semantics Composing Sequences Nullable Value Types Nullable<T> Struct Nullable Conversions Boxing/Unboxing Nullable Values Operator Lifting bool? with & and | Operators Nullable Types and Null Operators Nullable Reference Types Extension Methods Extension Method Chaining Ambiguity and Resolution Anonymous Types Tuples Naming Tuple Elements Deconstructing Tuples Records (C# 9) Defining a Record Nondestructive Mutation Primary Constructors Records and Equality Comparison Patterns var Pattern Constant Pattern Relational Patterns (C# 9) Pattern Combinators (C# 9) Tuple and Positional Patterns Property Patterns LINQ LINQ Fundamentals Deferred Execution Standard Query Operators Chaining Query Operators Query Expressions The let Keyword Query Continuations Multiple Generators Joining Ordering Grouping OfType and Cast Dynamic Binding Static Binding Versus Dynamic Binding Custom Binding Language Binding RuntimeBinderException Runtime Representation of dynamic Dynamic Conversions var Versus dynamic Dynamic Expressions Dynamic Member Overload Resolution Uncallable Functions Operator Overloading Operator Functions Overloading Equality and Comparison Operators Custom Implicit and Explicit Conversions Attributes Attribute Classes Named and Positional Attribute Parameters Attribute Targets Specifying Multiple Attributes Writing Custom Attributes Retrieving Attributes at Runtime Caller Info Attributes Asynchronous Functions The await and async Keywords Capturing Local State Writing Asynchronous Functions Parallelism Asynchronous Lambda Expressions Asynchronous Streams Unsafe Code and Pointers Pointer Basics Unsafe Code The fixed Statement The Pointer-to-Member Operator The stackalloc Keyword Fixed-Size Buffers void* Function Pointers (C# 9) Preprocessor Directives Pragma Warning XML Documentation Standard XML Documentation Tags Index
Donate to keep this site alive
How to download source code?
1. Go to: https://www.oreilly.com/
2. Search the book title: C# 9.0 Pocket Reference: Instant Help for C# 9.0 Programmers
, sometime you may not get the results, please search the main title
3. Click the book title in the search results
3. Publisher resources
section, click Download Example Code
.
1. Disable the AdBlock plugin. Otherwise, you may not get any links.
2. Solve the CAPTCHA.
3. Click download link.
4. Lead to download server to download.