
- English
- ePUB (mobile friendly)
- Available on iOS & Android
C# 7.0 All-in-One For Dummies
About this book
Sharpen your knowledge of C#
C# know-how is a must if you want to be a professional Microsoft developer. It's also good to know a little C# if you're building tools for the web, mobile apps, or other development tasks. C# 7.0 All-in-One For Dummies offers a deep dive into C# for coders still learning the nuances of the valuable programming language. Pop it open to get an intro into coding with C#, how to design secure apps and databases, and even pointers on building web and mobile apps with C#.
C# remains one of the most in-demand programming language skills. The language regularly ranks in the top five among "most in-demand" languages, typically along with Java/JavaScript, C++, and Python. A December 2016 ZDNet article noted 'If your employer is a Microsoft developer, you better know C#." Lucky for you, this approachable, all-in-one guide is here to help you do just that—without ever breaking a sweat!
Includes coverage of the latest changes to C#
- Shows you exactly what the language can (and can't) do
- Presents familiar tasks that you can accomplish with C#
- Provides insight into developing applications that provide protection against hackers
If you have a basic understanding of coding and need to learn C#—or need a reference on the language in order to launch or further your career—look no further.
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Information
The Basics of C# Programming
- Chapter 1: Creating Your First C# Console Application
- Getting a Handle on Computer Languages, C#, and .NET
- Creating Your First Console Application
- Making Your Console App Do Something
- Reviewing Your Console Application
- Introducing the Toolbox Trick
- Chapter 2: Living with Variability — Declaring Value-Type Variables
- Declaring a Variable
- What’s an int?
- Representing Fractions
- Handling Floating-Point Variables
- Using the Decimal Type: Is It an Integer or a Float?
- Examining the bool Type: Is It Logical?
- Checking Out Character Types
- What’s a Value Type?
- Comparing string and char
- Calculating Leap Years: DateTime
- Declaring Numeric Constants
- Changing Types: The Cast
- Letting the C# Compiler Infer Data Types
- Chapter 3: Pulling Strings
- The Union Is Indivisible, and So Are Strings
- Performing Common Operations on a String
- Comparing Strings
- What If I Want to Switch Case?
- Looping through a String
- Searching Strings
- Getting Input from the Command Line
- Controlling Output Manually
- Formatting Your Strings Precisely
- StringBuilder: Manipulating Strings More Efficiently
- Chapter 4: Smooth Operators
- Performing Arithmetic
- Performing Logical Comparisons — Is That Logical?
- Matching Expression Types at TrackDownAMate.com
- Chapter 5: Getting into the Program Flow
- Branching Out with if and switch
- Here We Go Loop-the-Loop
- Looping a Specified Number of Times with for
- Nesting Loops
- Don’t goto Pieces
- Chapter 6: Lining Up Your Ducks with Collections
- The C# Array
- Processing Arrays by Using foreach
- Sorting Arrays of Data
- Using var for Arrays
- Loosening Up with C# Collections
- Understanding Collection Syntax
- Using Lists
- Using Dictionaries
- Array and Collection Initializers
- Using Sets
- On Not Using Old-Fashioned Collections
- Chapter 7: Stepping through Collections
- Iterating through a Directory of Files
- Iterating foreach Collections: Iterators
- Accessing Collections the Array Way: Indexers
- Looping Around the Iterator Block
- Chapter 8: Buying Generic
- Writing a New Prescription: Generics
- Classy Generics: Writing Your Own
- Revising Generics
- Chapter 9: Some Exceptional Exceptions
- Using an Exceptional Error-Reporting Mechanism
- Throwing Exceptions Yourself
- Knowing What Exceptions Are For
- Can I Get an Exceptional Example?
- Assigning Multiple catch Blocks
- Planning Your Exception-Handling Strategy
- Grabbing Your Last Chance to Catch an Exception
- Throwing Expressions
- Chapter 10: Creating Lists of Items with Enumerations
- Seeing Enumerations in the Real World
- Working with Enumerations
- Creating Enumerated Flags
- Defining Enumerated Switches
Creating Your First C# Console Application




Getting a Handle on Computer Languages, C#, and .NET
Table of contents
- Cover
- Title Page
- Table of Contents
- Introduction
- Book 1: The Basics of C# Programming
- Book 2: Object-Oriented C# Programming
- Book 3: Designing for C#
- Book 4: A Tour of Visual Studio
- Book 5: Windows Development with WPF
- Book 6: Web Development with ASP.NET
- About the Author
- Advertisement Page
- Connect with Dummies
- End User License Agreement