Book 1

The Basics of C# Programming

Contents at a Glance

  1. Chapter 1: Creating Your First C# Console Application
    1. Getting a Handle on Computer Languages, C#, and .NET
    2. Creating Your First Console Application
    3. Making Your Console App Do Something
    4. Reviewing Your Console Application
    5. Introducing the Toolbox Trick
  2. Chapter 2: Living with Variability — Declaring Value-Type Variables
    1. Declaring a Variable
    2. What’s an int?
    3. Representing Fractions
    4. Handling Floating-Point Variables
    5. Using the Decimal Type: Is It an Integer or a Float?
    6. Examining the bool Type: Is It Logical?
    7. Checking Out Character Types
    8. What’s a Value Type?
    9. Comparing string and char
    10. Calculating Leap Years: DateTime
    11. Declaring Numeric Constants
    12. Changing Types: The Cast
    13. Letting the C# Compiler Infer Data Types
  3. Chapter 3: Pulling Strings
    1. The Union Is Indivisible, and So Are Strings
    2. Performing Common Operations on a String
    3. Comparing Strings
    4. What If I Want to Switch Case?
    5. Looping through a String
    6. Searching Strings
    7. Getting Input from the Command Line
    8. Controlling Output Manually
    9. Formatting Your Strings Precisely
    10. StringBuilder: Manipulating Strings More Efficiently
  4. Chapter 4: Smooth Operators
    1. Performing Arithmetic
    2. Performing Logical Comparisons — Is That Logical?
    3. Matching Expression Types at TrackDownAMate.com
  5. Chapter 5: Getting into the Program Flow
    1. Branching Out with if and switch
    2. Here We Go Loop-the-Loop
    3. Looping a Specified Number of Times with for
    4. Nesting Loops
    5. Don’t goto Pieces
  6. Chapter 6: Lining Up Your Ducks with Collections ...

Get C# 7.0 All-in-One For Dummies now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.