Books+ Search Results

The C# workshop : kickstart your career as a software developer with C#

Title
The C# workshop : kickstart your career as a software developer with C# / Jason Hales, Almantas Karpavicius, Mateus Viegas.
ISBN
9781800568501
1800568509
9781800566491
Edition
[First edition].
Publication
Birmingham, UK : Packt Publishing, 2022.
Physical Description
1 online resource (780 pages) : illustrations
Local Notes
Access is available to the Yale community.
Access and use
Access restricted by licensing agreement.
Summary
C# is a powerful, versatile language that can unlock a variety of career paths. But, as with any programming language, learning C# can be a challenging process. With a wide range of different resources available, it's difficult to know where to start. That's where The C# Workshop comes in. Written and reviewed by industry experts, it provides a fast-paced, supportive learning experience that will quickly get you writing C# code and building applications. Unlike other software development books that focus on dry, technical explanations of the underlying theory, this Workshop cuts through the noise and uses engaging examples to help you understand how each concept is applied in the real world. As you work through the book, you'll tackle realistic exercises that simulate the type of problems that software developers work on every day. These mini-projects include building a random-number guessing game, using the publisher-subscriber model to design a web file downloader, creating a to-do list using Razor Pages, generating images from the Fibonacci sequence using async/await tasks, and developing a temperature unit conversion app which you will then deploy to a production server. By the end of this book, you'll have the knowledge, skills, and confidence to advance your career and tackle your own ambitious projects with C#.
Variant and related titles
O'Reilly Safari. OCLC KB.
Other formats
Print version: Hales, Jason The the C# Workshop Birmingham : Packt Publishing, Limited,c2022
Format
Books / Online
Language
English
Added to Catalog
August 28, 2023
Contents
Cover
FM
Copyright
Table of Contents
Preface
Chapter 1: Hello C#
Introduction
Running and Developing C# with the .NET CLI
Creating Programs with the CLI and VS Code
Basic Anatomy of a C# Program
Exercise 1.01: Creating a Console App that Says ""Hello World
Top-Level Statements
Declaring Variables
Declaring Variables Explicitly
Declaring Variables Implicitly
Explicit versus Implicit Declaration
Exercise 1.02: Assigning Variables to User Inputs
Data Types
Strings
Exercise 1.03: Checking String Immutability
Comparing Strings
Numeric Types
Exercise 1.04: Using the Basic Arithmetic Operators
Classes
Dates
Exercise 1.05: Using Date Arithmetic.
Formatting Dates
Logical Operators and Boolean Expressions
Using if-else Statements
Exercise 1.06: Branching with if-else
The Ternary Operator
Reference and Value Types
Exercise 1.07: Grasping Value and Reference Equality
Default Value Types
Enhancing Decision Making with the switch Statement
Exercise 1.08: Using switch to Order Food
Iteration Statements
while
Exercise 1.09: Checking Whether a Number is Prime with a while Loop
Jump Statements
do-while
Arrays
for Loops
Exercise 1.10: Ordering an Array Using Bubble Sort
foreach Statements
File Handling
FileAccess
FileMode
Exercise 1.11: Reading Content from Text Files
Disposable Objects
Exercise 1.12: Writing to a Text File
Exceptions
Exercise 1.13: Handling Invalid User Inputs with try/catch
Activity 1.01: Creating a Guessing Game
Summary
Chapter 2: Building Quality Object-Oriented Code
Introduction
Classes and Objects
Constructors
Fields and Class Members
Exercise 2.01: Creating Classes and Objects
Reference Types
Properties
Object Initialization
Comparing Functions and Methods
An Effective Class
Exercise 2.02: Comparing the Area Occupied by Different Shapes
The Four Pillars of OOP
Encapsulation
Inheritance
Polymorphism
What is the Benefit of Polymorphism?
Abstraction
Interfaces
Exercise 2.03: Covering Floor in the Backyard
SOLID Principles in OOP
Single Responsibility Principle
Open-Closed Principle
Liskov Substitution
Interface Segregation
Dependency Inversion
How C# Helps with Object-Oriented Design
Static
Sealed
Partial
Virtual
Internal
Conditional Operators
Ternary Operators
Overloading Operators
Nullable Primitive Types
Generics
Enum
Extension Methods
Struct
Record
Init-Only Setters
ValueTuple and Deconstruction
Exercise 2.04: Creating a Composable Temperature Unit Converter
Activity 2.01: Merging Two Circles
Summary
Chapter 3: Delegates, Events, and Lambdas
Introduction
Delegates
Defining a Custom Delegate
Exercise 3.01: Defining and Invoking Custom Delegates
The Inbuilt Action and Func Delegates
Assigning Delegates
Citation

Available from:

Online
Loading holdings.
Unable to load. Retry?
Loading holdings...
Unable to load. Retry?