Buy Essential C# 8.0 Book by Mark Michaelis - Bookswagon
Book 1
Book 2
Book 3
Book 1
Book 2
Book 3
Book 1
Book 2
Book 3
Book 1
Book 2
Book 3
Home > Computing and Information Technology > Computer programming / software engineering > Programming and scripting languages: general > Essential C# 8.0
Essential C# 8.0

Essential C# 8.0


     0     
5
4
3
2
1



Out of Stock


Notify me when this book is in stock
X
About the Book

The Comprehensive, Expert Guide to C# 8.0 for Programmers at All Levels
“Welcome to one of the most venerable and trusted franchises you could dream of in the world of C# books—and probably far beyond! . . . Mark is super smart, insists on understanding everything to the core, and has phenomenal insight into how things affect real developers. . . . He goes right to the essence and communicates with great integrity—no sugarcoating—and has a keen eye for practical value and real-world problems.”
— From the Foreword by Mads Torgersen, C# Lead Designer, Microsoft
Essential C# 8.0 is a well-organized, no-fluff guide to C# 8.0 for programmers at all levels of experience. This edition retains all the valuable content of prior editions and adds discussions of null reference types, indices and ranges, enhanced pattern matching, asynchronous stream, and more.

World-class C# expert Mark Michaelis presents a comprehensive tutorial and reference for the entire language, providing an accelerated learning opportunity to achieve expert C# programming skills. He includes key C# 8.0 enhancements, succinct examples to illustrate central constructs, and updated coding guidelines for minimizing bugs and writing code that's easier to evolve. To help you quickly fi nd what you need, there are version-specific indexes of C# 6.0, 7.0, and 8.0 topics and visual icons that identify when each language innovation was introduced.

  • Use structured programming constructs to write functioning code immediately
  • Learn both the complexities and solutions to nullable reference types
  • Thoroughly master C# object constructs, including classes, inheritance, and interfaces
  • Reduce code redundancy with generics, delegates, lambda expressions, and events
  • Take full advantage of collections, including the new standard query operator collection API
  • Make the most of reflection, attributes, and the declarative programming paradigm
  • Improve multithreading with the task-based async pattern and C# 8.0 asynchronous streams
  • Enhance performance through the parallel processing of data and multithreading tasks
  • Program complex types with enhanced pattern matching syntax
  • Interoperate with unmanaged code written in other languages, including C-based APIs
  • Explore the relationship between C# programs and the underlying CLI runtime
Register your product for convenient access to downloads, updates, and/or corrections as they become available. See inside book for details.

Table of Contents:
Figures xvii
Tables xix
Foreword xxi
Preface xxiii
Acknowledgments xxxv
About the Author xxxvii


Chapter 1: Introducing C# 1
Hello, World 2
C# Syntax Fundamentals 13
Working with Variables 22
Console Input and Output 26
Managed Execution and the Common Language Infrastructure 34
Multiple .NET Frameworks 39

Chapter 2: Data Types 45
Fundamental Numeric Types 46
More Fundamental Types 55
Conversions between Data Types 72

Chapter 3: More with Data Types 81
Categories of Types 81
Declaring Types That Allow null 84
Implicitly Typed Local Variables 89
Tuples 92
Arrays 98

Chapter 4: Operators and Flow Control 121
Operators 122
Introducing Flow Control 138
Code Blocks ({}) 144
Code Blocks, Scopes, and Declaration Spaces 147
Boolean Expressions 149
Programming with null 155
Bitwise Operators (<<, >>, |, &, ^, ~) 162
Control Flow Statements, Continued 168
Jump Statements 180
C# Preprocessor Directives 186
Summary 193

Chapter 5: Methods and Parameters 195
Calling a Method 196
Declaring a Method 203
The using Directive 209
Returns and Parameters on Main() 214
Advanced Method Parameters 217
Recursion 229
Method Overloading 231
Optional Parameters 234
Basic Error Handling with Exceptions 239
Summary 253

Chapter 6: Classes 255
Declaring and Instantiating a Class 259
Instance Fields 262
Instance Methods 265
Using the this Keyword 266
Access Modifiers 274
Properties 276
Constructors 293
Non-Nullable Reference Type Properties with Constructors 303
Nullable Attributes 306
Deconstructors 309
Static Members 311
Extension Methods 321
Encapsulating the Data 323
Nested Classes 326
Partial Classes 329
Summary 333

Chapter 7: Inheritance 335
Derivation 336
Overriding the Base Class 346
Abstract Classes 357
All Classes Derive from System.Object 363
Pattern Matching with the is Operator 365
Pattern Matching within a switch Expression 371
Avoid Pattern Matching When Polymorphism Is Possible 373
Summary 374

Chapter 8: Interfaces 377
Introducing Interfaces 378
Polymorphism through Interfaces 380
Interface Implementation 384
Converting between the Implementing Class and Its Interfaces 390
Interface Inheritance 390
Multiple Interface Inheritance 393
Extension Methods on Interfaces 394
Versioning 396
Extension Methods versus Default Interface Members 411
Interfaces Compared with Abstract Classes 413
Interfaces Compared with Attributes 415

Chapter 9: Value Types 417
Structs 422
Boxing 428
Enums 437
Summary 447

Chapter 10: Well-Formed Types 451
Overriding object Members 451
Operator Overloading 464
Referencing Other Assemblies 472
Encapsulation of Types 479
Defining Namespaces 481
XML Comments 485
Garbage Collection 489
Resource Cleanup 493
Lazy Initialization 508
Summary 510

Chapter 11: Exception Handling 511
Multiple Exception Types 511
Catching Exceptions 514
Rethrowing an Existing Exception 517
General Catch Block 518
Guidelines for Exception Handling 519
Defining Custom Exceptions 523
Rethrowing a Wrapped Exception 527
Summary 530

Chapter 12: Generics 533
C# without Generics 534
Introducing Generic Types 539
Constraints 553
Generic Methods 568
Covariance and Contravariance 573
Generic Internals 580
Summary 585

Chapter 13: Delegates and Lambda Expressions 587
Introducing Delegates 588
Declaring Delegate Types 592
Lambda Expressions 600
Statement Lambdas 601
Anonymous Methods 606
Delegates Do Not Have Structural Equality 608
Outer Variables 611
Expression Trees 616
Summary 623

Chapter 14: Events 625
Coding the Publish–Subscribe Pattern with Multicast Delegates 626
Understanding Events 641
Summary 651

Chapter 15: Collection Interfaces with Standard Query Operators 653
Collection Initializers 654
What Makes a Class a Collection: IEnumerable 657
Standard Query Operators 663
Anonymous Types with LINQ 695
Summary 704

Chapter 16: LINQ with Query Expressions 705
Introducing Query Expressions 706
Query Expressions Are Just Method Invocations 724
Summary 726

Chapter 17: Building Custom Collections 727
More Collection Interfaces 728
Primary Collection Classes 731
Providing an Indexer 750
Returning null or an Empty Collection 753
Iterators 753
Summary 768

Chapter 18: Reflection, Attributes, and Dynamic Programming 769
Reflection 770
nameof Operator 781
Attributes 783
Programming with Dynamic Objects 800
Summary 811

Chapter 19: Introducing Multithreading 813
Multithreading Basics 815
Asynchronous Tasks 822
Canceling a Task 843
Working with System.Threading 850
Summary 851

Chapter 20: Programming the Task-Based Asynchronous Pattern 853
Synchronously Invoking a High-Latency Operation 854
Asynchronously Invoking a High-Latency Operation Using the TPL 856
The Task-Based Asynchronous Pattern with async and await 861
Introducing Asynchronous Return of ValueTask 867
Asynchronous Streams 870
IAsyncDisposable and the await using Declaration and Statement 874
Using LINQ with IAsyncEnumerable 875
Returning void from an Asynchronous Method 877
Asynchronous Lambdas and Local Functions 881
Task Schedulers and the Synchronization Context 887
async/await with the Windows UI 890
Summary 893

Chapter 21: Iterating in Parallel 895
Executing Loop Iterations in Parallel 895
Running LINQ Queries in Parallel 905
Summary 911

Chapter 22: Thread Synchronization 913

Why Synchronization? 914
Timers 943
Summary 945

Chapter 23: Platform Interoperability and Unsafe Code 947

Platform Invoke 948
Pointers and Addresses 960
Executing Unsafe Code via a Delegate 971
Summary 972

Chapter 24: The Common Language Infrastructure 973

Defining the Common Language Infrastructure 974
CLI Implementations 975
.NET Standard 978
Base Class Library 979
C# Compilation to Machine Code 979
Runtime 982
Assemblies, Manifests, and Modules 986
Common Intermediate Language 989
Common Type System 990
Common Language Specification 991
Metadata 991
.NET Native and Ahead of Time Compilation 993
Summary 993

Index 995
Index of 8.0 Topics 1039
Index of 7.0 Topics 1041
Index of 6.0 Topics 1043


Best Sellers


Product Details
  • ISBN-13: 9780135972236
  • Publisher: Pearson Education (US)
  • Publisher Imprint: Addison Wesley
  • Language: English
  • ISBN-10: 013597223X
  • Publisher Date: 10 Feb 2022
  • Binding: Digital download
  • No of Pages: 1088


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
Essential C# 8.0
Pearson Education (US) -
Essential C# 8.0
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

Essential C# 8.0

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept


    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!