Previous Next

C 13 Programming Essentials - .NET 9 Edition Learn C and .Net 9 Programming using Visual Studio Code (Neil Smyth) (z-library.sk, 1lib.sk, z-lib.sk)

Author: Neil Smyth

C/C++/C#

No Description

📄 File Format: PDF
💾 File Size: 4.7 MB
8
Views
0
Downloads
0.00
Total Donations

📄 Text Preview (First 20 pages)

ℹ️

Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

📄 Page 1
(This page has no text content)
📄 Page 2
(This page has no text content)
📄 Page 3
C# 13 Programming Essentials .NET 9 Edition C# 13 Programming Essentials - .NET 9 Edition ISBN-13: 978-1-965764-01-5 © 2024 Neil Smyth / Payload Media, Inc. All Rights Reserved. This book is provided for personal use only. Unauthorized use, reproduction and/or distribution strictly prohibited. All rights reserved. The content of this book is provided for informational purposes only. Neither the publisher nor the author offers any warranties or representation, express or implied, with regard to the accuracy of information contained in this book, nor do they accept any liability for any loss or damage arising from any errors or omissions. This book contains trademarked terms that are used solely for editorial purposes and to the benefit of the respective trademark owner. The terms used within this book are not intended as infringement of any trademarks.
📄 Page 4
Rev: 1.0 Copyright https://www.payloadbooks.com
📄 Page 5
Table of Contents 1. Start Here 1.1 Source code download 1.2 Feedback 1.3 Errata 1.4 Take the knowledge tests 2. The History of Programming Languages and C# 2.1 The history of programming languages 2.2 What exactly is C#? 2.3 Who is using C#? 2.4 Take the knowledge test 2.5 Summary 3. C# Infrastructure 3.1 The Common Language Infrastructure (CLI) 3.2 Common Intermediate Language (CIL) 3.3 Virtual Execution System (VES) 3.4 Common Type System (CTS) & Common Language Specification (CLS)
📄 Page 6
3.5 The Framework (Base Class and Framework Class Libraries) 3.6 Implementations of the CLI 3.7 Take the knowledge test 3.8 Summary 4. Installing Visual Studio Code, C# and .NET 9 4.1 Installing the .NET 9 SDK 4.1.1 Installing .NET 9 on Windows 4.1.2 Installing .NET 9 on macOS 4.1.3 Installing .NET 9 on Red Hat Linux-based distributions 4.1.4 Installing the .NET 9 on Debian/Ubuntu distributions 4.1.5 Installing .Net 9 from the Linux binaries 4.2 Downloading Visual Studio Code 4.3 Installing on Windows 4.4 Installing on macOS 4.5 Installing on Linux 4.5.1 Debian/Ubuntu 4.5.2 Red Hat-based distributions 4.6 Customizing Visual Studio Code 4.7 Adding the C# Dev Kit extension 4.8 Take the knowledge test
📄 Page 7
4.9 Summary 5. A Guided Tour of Visual Studio Code 5.1 Workspaces, projects, and solutions 5.2 The VS Code main window 5.3 The Command Palette 5.4 Splitting the editor window 5.5 Zen mode 5.6 Learning with the Editor Playground 5.7 Take the knowledge test 5.8 Summary 6. Creating an Example C# App in VS Code 6.1 Creating the SampleApp project 6.2 Reviewing the SampleApp project 6.3 Writing the app code 6.4 Top-level statements and the Main method 6.5 Take the knowledge test 6.6 Summary 7. C# Variables and Constants 7.1 What is a C# variable? 7.2 Type annotations and implicit typing
📄 Page 8
7.3 What is a C# constant? 7.4 Integer types 7.5 Floating-point Variables 7.6 Decimal type 7.7 Boolean type 7.8 Character data type 7.9 Special characters 7.10 String data type 7.11 Verbatim string literals 7.12 String interpolation 7.13 Type casting 7.13.1 Implicit casting 7.13.2 Explicit casting 7.13.3 Identifying variable’s type 7.14 Take the knowledge test 7.15 Summary 8. C# Operators and Expressions 8.1 What is an expression? 8.2 The basic assignment operator 8.3 C# arithmetic operators
📄 Page 9
8.4 C# operator precedence 8.5 Compound assignment operators 8.6 Increment and decrement operators 8.7 Comparison operators 8.8 Boolean logical operators 8.9 Range and index operators 8.10 The ternary operator 8.11 Null-coalescing operators 8.12 Bitwise Operators 8.12.1 Bitwise NOT 8.12.2 Bitwise AND 8.12.3 Bitwise OR 8.12.4 Bitwise XOR 8.12.5 Bitwise Left Shift 8.12.6 Bitwise Right Shift 8.13 Compound Bitwise Operators 8.14 Take the knowledge test 8.15 Summary 9. C# Conditional Control Flow 9.1 Looping vs. conditional control flow
📄 Page 10
9.2 Using the if statement 9.3 Using if … else … statements 9.4 Using if … else if … statements 9.5 Take the knowledge test 9.6 Summary 10. The C# switch Statement 10.1 Why use the switch statement? 10.2 Using the switch statement 10.3 A switch statement example 10.4 Explaining the example 10.5 Using switch expressions 10.6 Using goto in a C# switch statement 10.7 Using continue in a C# switch statement 10.8 Take the knowledge test 10.9 Summary 11. C# Looping with the for Statement 11.1 Why use loops? 11.2 C# loop variable scope 11.3 Creating an infinite for loop 11.4 Breaking out of a for loop
📄 Page 11
11.5 Nested for loops 11.6 Breaking from nested loops 11.7 Continuing for loops 11.8 The C# foreach statement 11.9 Take the knowledge test 11.10 Summary 12. C# Looping with do and while Statements 12.1 The C# while loop 12.2 C# do … while loops 12.3 Breaking from loops 12.4 The continue statement 12.5 Take the knowledge test 12.6 Summary 13. An Introduction to C# Object-Oriented Programming 13.1 What is an object? 13.2 What is a class? 13.3 Creating the ObjectDemo project 13.4 Declaring a C# class 13.5 Access modifiers 13.6 Creating C# class members
📄 Page 12
13.7 Fields vs. properties 13.8 Adding members to the BankAccount class 13.9 Static, read-only, and const data members 13.10 Instantiating an object from a C# class 13.11 Accessing C# object members 13.12 Adding methods to a C# class 13.13 C# constructors 13.14 C# primary constructors 13.15 C# finalizers 13.16 The “this” keyword 13.17 Take the knowledge test 13.18 Summary 14. C# Methods 14.1 What is a method? 14.2 Methods vs. functions 14.3 Parameter or argument? 14.4 How to declare a C# function 14.5 Creating the MethodDemo project 14.6 Declaring a C# class file 14.7 Calling a C# method
📄 Page 13
14.8 Handling return values 14.9 Passing arguments to a method 14.9.1 Named arguments 14.9.2 Optional arguments 14.10 Handling variable numbers of arguments 14.11 C# in, out, and ref parameter modifiers 14.12 Take the knowledge test 14.13 Summary 15. C# Delegates 15.1 What is a delegate? 15.2 Declaring a delegate 15.3 Using delegates 15.4 Creating the DelegateDemo project 15.5 A C# delegate example 15.6 Multicast delegates 15.7 Passing a delegate to a method 15.8 Take the knowledge test 15.9 Summary 16. C# Anonymous Methods, Lambdas, and Local Functions 16.1 Anonymous methods
📄 Page 14
16.2 Creating the LambdaDemo project 16.3 Lambdas 16.4 Passing multiple parameters 16.5 Passing no parameters 16.6 Local functions 16.7 Creating the LocalFunctions project 16.8 Recursive local functions 16.9 Lambdas vs. local functions 16.10 Take the knowledge test 16.11 Summary 17. C# Inheritance 17.1 What is inheritance? 17.2 A C# inheritance example 17.3 Creating a subclass in C# 17.4 Passing arguments to the base class constructor 17.5 Overriding inherited methods 17.6 Take the knowledge test 17.7 Summary 18. C# Abstract Classes 18.1 What is a C# abstract class?
📄 Page 15
18.2 Abstract members 18.3 Declaring a C# abstract class 18.4 Deriving from an abstract class 18.5 Creating the AbstractClassDemo project 18.6 Abstract vs. virtual members 18.7 Take the knowledge test 18.8 Summary 19. C# Interfaces 19.1 Understanding C# interfaces 19.2 Declaring an interface 19.3 Creating the InterfaceDemo project 19.4 Adding a C# interface file 19.5 Interface data members 19.6 Take the knowledge test 19.7 Summary 20. C# Structures 20.1 An overview of C# structures 20.2 Creating the StructureDemo project 20.3 Value types vs. reference types 20.4 Adding the Struct declaration
📄 Page 16
20.5 Read-only structures 20.6 Take the knowledge test 20.7 Summary 21. C# Tuple Type 21.1 Creating the TupleDemo project 21.2 Declaring a Tuple 21.3 Accessing tuple values 21.4 Tuple field names 21.5 Returning tuples from methods 21.6 Tuples as method parameters 21.7 Take the knowledge test 21.8 Summary 22. C# Namespaces 22.1 Understanding scope 22.2 An overview of namespaces 22.3 Creating the NamespaceDemo project 22.4 Declaring namespaces 22.5 Accessing namespace members 22.6 Namespaces and the “using” keyword 22.7 Nested namespaces
📄 Page 17
22.8 Aliases and the namespace alias operator 22.9 File scoped namespaces 22.10 Take the knowledge test 22.11 Summary 23. C# Exception Handling 23.1 Understanding exception handling 23.2 Creating the ExceptionDemo project 23.3 Throwing exceptions 23.4 Handling exceptions 23.5 Creating exception filters with the “when” keyword 23.6 Using finally blocks 23.7 Using the try-finally Statement 23.8 Re-throwing exceptions 23.9 Creating custom exception types 23.10 Take the knowledge test 23.11 Summary 24. Asynchronous Programming in C# 24.1 An overview of threads 24.2 The main thread 24.3 Asynchronous programming in C#
📄 Page 18
24.4 Creating the AsyncDemo project 24.5 Synchronous code 24.6 Understanding the C# Task class 24.7 Declaring asynchronous methods 24.8 Introducing the await operator 24.9 Asynchronous calls from synchronous functions 24.10 Canceling asynchronous tasks 24.11 Take the knowledge test 24.12 Summary 25. Creating 2D, 3D, and Jagged Arrays in C# 25.1 Creating arrays in C# 25.2 Declaring multidimensional arrays 25.3 Declaring jagged arrays 25.4 Take the knowledge test 25.5 Summary 26. Accessing and Sorting C# Array Elements 26.1 Creating the ArrayDemo Project 26.2 Getting the number of dimensions of an array 26.3 Accessing array elements 26.4 Array iteration
📄 Page 19
26.5 Working with ranges 26.6 C# index from end operator 26.7 Sorting C# arrays 26.8 Clearing C# arrays 26.9 Take the knowledge test 26.10 Summary 27. C# List Collections 27.1 Creating the CollectionDemo Project 27.2 Introducing the C# Collection Classes 27.3 Creating C# list collections with List 27.4 Adding items to lists 27.5 Initializing a list with multiple values 27.6 Accessing list items 27.7 Removing items from lists 27.8 Inserting items into a list 27.9 Sorting lists in C# 27.10 Finding items in a C# list 27.11 Obtaining information about a list 27.12 Clearing C# lists 27.13 Take the knowledge test
📄 Page 20
27.14 Summary 28. C# Dictionary Collections 28.1 Creating the DictionaryDemo Project 28.2 Dictionary initialization 28.3 Dictionary item count 28.4 Dictionary iteration 28.5 Adding and removing dictionary entries 28.6 Accessing and updating dictionary items 28.7 Checking if a key or value exists 28.8 Take the knowledge test 28.9 Summary 29. C# File and Directory Handling 29.1 Introducing the System.IO classes 29.2 Understanding paths in C# 29.3 Creating the FileDemo project 29.4 Current working directory 29.5 Checking if a directory exists 29.6 Creating a Directory 29.7 Deleting a Directory 29.8 Changing the current working directory
The above is a preview of the first 20 pages. Register to read the complete e-book.

💝 Support Author

0.00
Total Amount (¥)
0
Donation Count

Login to support the author

Login Now

Recommended for You

Loading recommended books...
Failed to load, please try again later
Back to List