وبلاگ بلیان

C# 10 Quick Syntax Reference : A Pocket Guide to the Language, APIs, and Library

جلد کتاب C# 10 Quick Syntax Reference : A Pocket Guide to the Language, APIs, and Library

معرفی کتاب «C# 10 Quick Syntax Reference : A Pocket Guide to the Language, APIs, and Library» نوشتهٔ Jones، Sandie و Mikael Olsson; Safari, an O'Reilly Media Company، منتشرشده توسط نشر Apress L. P.; Apress در سال 2022. این کتاب در فرمت pdf، زبان انگلیسی ارائه شده است.

Discover what's new in C# and .NET for Windows programming. This book is a condensed code and syntax reference to the C# programming language, updated with the latest features of version 10 for .NET 6. You'll review the essential C# 10 and earlier syntax, not previously covered, in a well-organized format that can be used as a handy reference. Specifically, unions, generic attributes, CallerArgumentExpression, params span, Records, Init only setters, Top-level statements, Pattern matching enhancements, Native sized integers, Function pointers and more. You'll find a concise reference to the C# language syntax: short, simple, and focused code examples; a well laid out table of contents; and a comprehensive index allowing easy review. You won’t find any technical jargon, bloated samples, drawn-out history lessons, or witty stories. What you will find is a language reference that is to the point and highly accessible. The book is a must-have for any C# programmer. What You Will Learn Employ nullable reference types Work with ranges and indices Apply recursive patterns to your applications Use switch expressions Who This Book Is For Those with some experience in programming, looking for a quick, handy reference. Some C# or .NET recommended but not necessary. Table of Contents About the Author About the Technical Reviewer Introduction Chapter 1: Hello World Choosing an IDE Creating a Project Hello World IntelliSense Chapter 2: Compile and Run Visual Studio Compilation Console Compilation Comments Chapter 3: Variables Data Types Declaration Assignment Integer Types Floating-Point Types Char Type Bool Type Variable Scope Chapter 4: Operators Arithmetic Operators Assignment Operators Increment and Decrement Operators Comparison Operators Logical Operators Bitwise Operators Operator Precedents Chapter 5: Strings String Concatenation Escape Characters String Compare String Members StringBuilder Class Chapter 6: Arrays Array Declaration Array Allocation Array Assignment Array Access Rectangular Arrays Jagged Arrays Chapter 7: Conditionals If Statement Switch Statement Goto Statement Switch Expression Ternary Operator Chapter 8: Loops While Loop Do-While Loop For Loop Foreach Loop Break and Continue Chapter 9: Methods Defining Methods Calling Methods Method Parameters Params Keyword Method Overloading Optional Parameters Named Arguments Return Statement Value and Reference Types Pass by Value Pass by Reference Ref Keyword Out Keyword Local Methods Chapter 10: Class Object Creation Accessing Object Members Constructor This Keyword Constructor Overloading Constructor Chaining Initial Field Values Default Constructor Object Initializers Partial Class Garbage Collector Finalizer Null and Nullable Types Nullable Value Types Null-Coalescing Operator Null-Conditional Operator Null-Forgiving Operator Default Values Type Inference Anonymous Types Chapter 11: Inheritance Object Class Downcast and Upcast Boxing Unboxing The is and as Keywords Pattern Matching Chapter 12: Redefining Members Hiding Members Overriding Members Hiding and Overriding Sealed Keyword Base Keyword Chapter 13: Access Levels Private Access Protected Access Internal Access Protected Internal Access Private Protected Access Public Access Top-Level Access Levels Inner Classes Access Level Guideline Chapter 14: Static Accessing Static Members Static Methods Static Fields Static Classes Static Constructor Static Local Functions Extension Methods Chapter 15: Properties Property Advantages Read-Only and Write-Only Properties Property Access Levels Auto-implemented Properties Chapter 16: Indexers Indexer Parameters Indexer Overloading Ranges and Indices Chapter 17: Interfaces Interface Signatures Interface Example Functionality Interface Class Interface Default Implementations Chapter 18: Abstract Abstract Members Abstract Example Abstract Classes and Interfaces Chapter 19: Namespaces Nested Namespaces Namespace Access File-Scoped Namespaces Using Directive Top-Level Statements Chapter 20: Enum Enum Example Enum Constant Values Enum Constant Type Enum Access Levels and Scope Enum Methods Chapter 21: Exception Handling Try-Catch Statement Catch Block Exception Filters Finally Block The using Statement Throwing Exceptions Chapter 22: Operator Overloading Operator Overloading Example Binary Operator Overloading Unary Operator Overloading Return Types and Parameters Overloadable Operators True and False Operator Overloading Chapter 23: Custom Conversions Implicit Conversion Methods Explicit Conversion Methods Chapter 24: Struct Struct Variable Struct Constructors Struct Field Initializers Struct Inheritance Struct Guideline Chapter 25: Record Record Behavior Record Structs Record Guidelines Chapter 26: Preprocessors Preprocessor Syntax Conditional Compilation Symbols Conditional Compilation Diagnostic Directives Line Directive Region Directives Chapter 27: Delegates Anonymous Methods Lambda Expressions Expression Body Members Type Inference Capturing Outer Variables Multicast Delegates Delegate Signature Delegates As Parameters Chapter 28: Events Publisher Event Keyword Event Caller Raising Events Subscriber Subscribing to Events Chapter 29: Generics Generic Methods Calling Generic Methods Generic Type Parameters Default Value Generic Classes Generic Class Inheritance Generic Interfaces Generic Delegates Generic Events Generics and Object Constraints Multiple Constraints Why Use Constraints Chapter 30: Constants Local Constants Constant Fields Readonly In Parameters Constant Guidelines Chapter 31: Asynchronous Methods The Async and Await Keywords Async Return Types Custom Async Methods Extended Return Types Async Streams Index
دانلود کتاب C# 10 Quick Syntax Reference : A Pocket Guide to the Language, APIs, and Library