وبلاگ بلیان

شروع با C# پیشرفته: مهارت‌های برنامه‌نویسی خود را ارتقا دهید

Getting Started with Advanced C# : Upgrade Your Programming Skills

معرفی کتاب «شروع با C# پیشرفته: مهارت‌های برنامه‌نویسی خود را ارتقا دهید» (با عنوان لاتین Getting Started with Advanced C# : Upgrade Your Programming Skills) نوشتهٔ Vaskaran Sarcar; SpringerLink (Online service)، منتشرشده توسط نشر Apress : Imprint: Apress در سال 2020. این کتاب در فرمت pdf، زبان انگلیسی ارائه شده است.

Understand and work with the most important features of advanced C# in different programming environments. This book teaches you the fundamental features of advanced C# and how to incorporate them in different programming techniques using Visual Studio 2019. The book is divided into two parts. Part I covers the fundamentals and essentials of advanced programming in C#. You will be introduced to delegates and events and then move on to lambda expressions. Part II teaches you how to implement these features in different programming techniques, starting with generic programming. After that, you will learn about thread programming and asynchronous programming, to benefit from a multi-threaded environment. Finally, you will learn database programming using ADO.NET to connect to a MySQL database and you will know how to exercise SQL statements and stored procedures through your C# applications. What You Will Learn Use delegates, events, and lambda expressions in advanced programming Make your application flexible by utilizing generics Create a fast application with multi-threading and asynchronous programming Work in Visual Studio Community Edition, which is the most common IDE for using C# Understand alternative implementations along with their pros and cons Who This Book Is For Developers and programmers who are already working in C# Table of Contents About the Author About the Technical Reviewer Acknowledgments Foreword Introduction Part I: Getting Familiar with Building Blocks Chapter 1: Delegates Definition Demonstration 1 Output Analysis Q&A Session Comparing a Static Method with an Instance Method Demonstration 2 Output Using Multicast Delegates Demonstration 3 Output Analysis Q&A Session Demonstration 4 Output Analysis Q&A Session Demonstration 5 Output Analysis Q&A Session Variance in Delegates Covariance in Delegates Demonstration 6 Output Analysis Contravariance in Delegates Demonstration 7 Output Analysis Q&A Session Final Words Summary Chapter 2: Events Demonstration 1 Output Analysis Q&A Session Creating Custom Events Demonstration 2 Output Analysis Passing Data to an Event Argument Demonstration 3 Output Using Event Accessors Demonstration 4 Output Analysis Q&A Session Handling Interface Events Demonstration 5 Output Q&A Session Handling Explicit Interface Events Demonstration 6 Output Q&A Session Demonstration 7 Output Q&A Session Demonstration 8 Output Final Words Summary Chapter 3: Lambda Expressions The Usefulness of Lambda Expressions Demonstration 1 Output Analysis Lambda Expression with (and Without) Parameters Demonstration 2 Output Types of Lambda Expressions Expression-Bodied Members Demonstration 3 Output Demonstration 4 Output Local Variables in a Lambda Expression Demonstration 5 Output Using Tuples in a Lambda Expression Demonstration 6 Output Event Subscription with Lambda Expressions Demonstration 7 Output Q&A Session Final Words Summary Part II: Exploring Advanced Programming Chapter 4: Generic Programming The Motivation Behind Generics Demonstration 1 Output Analysis Demonstration 2 Output Analysis Demonstration 3 Output Analysis A Quick Look into the List Class Demonstration 4 Output Analysis Generic Delegates Func Delegate Q&A Session Action Delegate Predicate Delegate Demonstration 5 Output Q&A Session The Default Keyword in Generics Demonstration 6 Output Q&A Session Implementing Generic Interface Demonstration 7 Output Analysis Q&A Session Generic Constraints Demonstration 8 Output Q&A Session Using Covariance and Contravariance Q&A Session Covariance with Generic Delegate Demonstration 9 Output Covariance with Generic Interfaces Demonstration 10 Output Contravariance with Generic Delegates Demonstration 11 Output Contravariance with Generic Interface Partial Implementation Q&A Session Demonstration 12 Output Analysis Q&A Session Demonstration 13 Output Self-Referencing Generic Types Demonstration 14 Output Analysis Q&A Session Demonstration 15 Output Q&A Session Final Words Summary Chapter 5: Thread Programming Foundations in Thread Programming Q&A Session Coding Multithreaded Programs in C# Using the ThreadStart Delegate Demonstration 1 Output Analysis Demonstration 2 Output Analysis Q&A Session Using the ParameterizedThreadStart Delegate Demonstration 3 Output Analysis Q&A Session Demonstration 4 Output Analysis Q&A Session Demonstration 5 Output Q&A Session Demonstration 6 Output Analysis Q&A Session Foreground Thread vs. Background Thread Demonstration 7 Output Additional Note Thread Safety A Non-Synchronized Version Demonstration 8 Output A Synchronized Version Demonstration 9 Output An Alternative Approach Using the Monitor Class Deadlock Types of Deadlock Demonstration 10 Output Investigating the Deadlocked State in Visual Studio Final Words Summary Chapter 6: Asynchronous Programming Overview Using a Synchronous Approach Demonstration 1 Output Using Thread Class Demonstration 2 Output Analysis Q&A Session Using the ThreadPool Class Demonstration 3 Output Q&A Session Using Lambda Expressions with ThreadPool Demonstration 4 Output Using the IAsyncResult Pattern Polling Using Asynchronous Delegates Demonstration 5 Output Q&A Session Using the AsyncWaitHandle Property of IAsyncResult Demonstration 6 Output Analysis Using Asynchronous Callback Demonstration 7 Output Analysis Q&A Session Using an Event-based Asynchronous Pattern (EAP) Demonstration 8 Output Analysis Additional Note Output Q&A Session Understanding Tasks Demonstration 9 Output Q&A Session Using a Task-based Asynchronous Pattern (TAP) Demonstration 10 Output Demonstration 11 Output Analysis Q&A Session Using the async and await Keywords Demonstration 12 Output Analysis Demonstration 13 Output Analysis Final Words Summary Chapter 7: Database Programming Database and DBMS Types of DBMS RDBMS SQL A Brief Discussion of ADO.NET Understanding the Code MySqlConnection MySqlCommand MySqlDataReader Implementing Connection-Oriented Architecture Demonstration 1 Output Analysis Demonstration 2 Output Implementing Disconnected Data Architecture MySqlDataAdapter MySqlCommandBuilder Demonstration 3 Output Programming with Stored Procedures Stored Procedure to Select Records Stored Procedure to Insert One Record Stored Procedure to Delete One Record One Simple Verification Demonstration 4 Output Q&A Session Connection Pooling Final Words Summary Appendix A: Installing MySQL and Testing SQL Commands Upgrade Scenario Testing the Installation and Executing Simple SQL Statements Appendix B: Recommended Reading Index
دانلود کتاب شروع با C# پیشرفته: مهارت‌های برنامه‌نویسی خود را ارتقا دهید