- Browse
- » Target C#: Simple Hands-On Programming with Visual Studio 2022
Target C#: Simple Hands-On Programming with Visual Studio 2022
Author
Publisher
Apress L. P
Publication Date
2022.
Language
English
Description
Loading Description...
More Details
ISBN
9781484286197
Table of Contents
From the eBook
Intro
Table of Contents
About the Author
Acknowledgments
Introduction
Chapter 1: .NET
.NET: What Is It?
.NET Core: What Is It?
C# Language Versioning
.NET and C# Compilation Process
Compile Time and Runtime
Framework and Library
Library
Framework
Managed and Unmanaged Code
Chapter Summary
Chapter 2: Software Installation
About the .NET Framework
Installing the .NET Framework
Verify the .NET Framework Installation
Installing Visual Studio
Verify the Visual Studio Installation
Chapter Summary
Chapter 3: Introduction
Computer Program
Programming Languages
A Computer Program: A Recipe
Type in C#
The Basic Operations of a Computer
C# Program Application Formats
Format 1: Console Application
Format 2: .NET MAUI
Format 3: ASP.NET Web Applications
The Structure of a C# Program
Namespaces
Classes
Naming a Class: Class Identifiers
Chapter Summary
Chapter 4: Input and Output
Write to and Read from the Console
Change Console Display Settings
Chapter Summary
Chapter 5: Commenting Code
C# Single-Line Comments
New .NET 6 Templates
C# Multiple-Line Comments
Chapter Summary
Chapter 6: Data Types
Data Types, Variables, and Conversion
Data Types
Conversion from One Data Type to Another
Converting
Something a Little Different with Our Variables
C# 8 Nullable Reference Types
Chapter Summary
Chapter 7: Casting and Parsing
Data Types, Casting, and Parsing
Chapter Summary
Chapter 8: Arithmetic
Arithmetic Operations
Common Arithmetic Operators
Integer Division
Solution Explorer and Project Analysis
Other Operators
Plus Equals ( +=)
Minus Equals ( -=)
Multiply Equals ( *=)
Divide Equals ( /=)
Square Root
Chapter Summary
Chapter 9: Selection
Arithmetic Operations
Selection
Comparison Operators
The if Construct
The if-else Construct
The if else if Construct
The switch Construct
The switch Construct Using when
switch with Strings
switch with Strings
Additional Example
Logical Operators
Using the AND Operator
Using the OR Operator
Using the NOT Operator
Conditional Operator (Ternary Operator)
Nested Ternary Conditional Operator
Chapter Summary
Chapter 10: Iteration
Iteration and Loops
Introduction to Iteration
For Loop
Break Statement
Continue Statement
While Loop
Break Statement
Continue Statement
Do (While) Loop
Break Statement
Continue Statement
Chapter Summary
Chapter 11: Arrays
Arrays: A Data Structure
Single-Dimensional Arrays
Choice 1: Declaring and Creating an Array in Two Stages
Choice 2: Declaring and Creating an Array in One Stage
Referencing the Array Elements
foreach Loop
IndexOutOfBounds Exception
Ranges and Indices: C# 8 and Above
Range
Chapter Summary
Chapter 12: Methods
Methods: Modularization
Excerpt
Loading Excerpt...
Author Notes
Loading Author Notes...
Reviews from GoodReads
Loading GoodReads Reviews.
Staff View
Loading Staff View.