C# Programming Fundamentals
()
About this ebook
The thirteen chapters gently guide the newbie with plenty of examples, while it also offers clear explanations of C# programming concepts to those already familiar with the language.
Author and Microsoft Specialist James Lombard, brings his twenty years of experience in the IT industry to present a book that is a great starting point for new programmers and an excellent study guide for those who wish to learn more about the fundamentals of the C# programming language.
Read more from James Lombard
ASP.NET Application Development Fundamentals Rating: 0 out of 5 stars0 ratingsJames Learning Javascript Programming Rating: 0 out of 5 stars0 ratings
Related to C# Programming Fundamentals
Related ebooks
Functional C# Rating: 5 out of 5 stars5/5C# For Beginners: An Introduction to C# Programming with Tutorials and Hands-On Examples Rating: 5 out of 5 stars5/5C# Programming Rating: 5 out of 5 stars5/5PROGRAMMING IN C# 10 - Basic Techniques Rating: 2 out of 5 stars2/5C# Functions and Tutorial - 50 Examples Rating: 0 out of 5 stars0 ratingsC# Programming & Software Development: 6 In 1 Coding Syntax, Expressions, Interfaces, Generics And App Debugging Rating: 0 out of 5 stars0 ratingsC# for Beginners: Learn in 24 Hours Rating: 0 out of 5 stars0 ratingsVisual Studio 2022 In-Depth: Explore the Fantastic Features of Visual Studio 2022 - 2nd Edition Rating: 0 out of 5 stars0 ratingsC# 7 and .NET Core Cookbook Rating: 0 out of 5 stars0 ratingsBeginning C++ Programming Rating: 3 out of 5 stars3/5Learning C# by Developing Games with Unity 2019 - Fourth Edition: Code in C# and build 3D games with Unity, 4th Edition Rating: 0 out of 5 stars0 ratingsA Quick Guide to c# with Unity: Quick Guides, #1 Rating: 5 out of 5 stars5/5Learn Java 12 Programming: A step-by-step guide to learning essential concepts in Java SE 10, 11, and 12 Rating: 0 out of 5 stars0 ratingsBeginning C++ Game Programming Rating: 4 out of 5 stars4/5The basic concepts of OOP in C#: Learn conceptually in simple language Rating: 0 out of 5 stars0 ratingsC# 7 and .NET Core: Modern Cross-Platform Development - Second Edition Rating: 5 out of 5 stars5/5C# Programming Cookbook Rating: 0 out of 5 stars0 ratings.NET Design Patterns Rating: 3 out of 5 stars3/5Unity from Proficiency to Mastery (C# Programming): Unity 5 from Proficiency to Mastery, #2 Rating: 0 out of 5 stars0 ratingsJava: Best Practices to Programming Code with Java Rating: 0 out of 5 stars0 ratingsC++ Learn in 24 Hours Rating: 0 out of 5 stars0 ratingsC# Mini Reference: A Hitchhiker's Guide to the Modern Programming Languages, #2 Rating: 0 out of 5 stars0 ratingsLearn Programming Using C# Rating: 0 out of 5 stars0 ratingsMastering Unity Scripting Rating: 0 out of 5 stars0 ratingsVisual Basic .NET for complete beginners Rating: 5 out of 5 stars5/5Art of Clean Code: How to Write Codes for Human Rating: 3 out of 5 stars3/5Java 9 Programming By Example Rating: 4 out of 5 stars4/5JAVA for Beginner's Crash Course: Java for Beginners Guide to Program Java, jQuery, & Java Programming Rating: 4 out of 5 stars4/5Java Programming for Kids: Learn Java Step By Step and Build Your Own Interactive Calculator for Fun! Rating: 2 out of 5 stars2/5Core Java Professional: For First Time Learner's. Rating: 0 out of 5 stars0 ratings
Computers For You
Deep Search: How to Explore the Internet More Effectively Rating: 5 out of 5 stars5/5Mastering ChatGPT: 21 Prompts Templates for Effortless Writing Rating: 4 out of 5 stars4/5Creating Online Courses with ChatGPT | A Step-by-Step Guide with Prompt Templates Rating: 4 out of 5 stars4/5Procreate for Beginners: Introduction to Procreate for Drawing and Illustrating on the iPad Rating: 5 out of 5 stars5/5Elon Musk Rating: 4 out of 5 stars4/5The Self-Taught Computer Scientist: The Beginner's Guide to Data Structures & Algorithms Rating: 0 out of 5 stars0 ratingsThe ChatGPT Millionaire Handbook: Make Money Online With the Power of AI Technology Rating: 4 out of 5 stars4/5The Innovators: How a Group of Hackers, Geniuses, and Geeks Created the Digital Revolution Rating: 4 out of 5 stars4/5How to Create Cpn Numbers the Right way: A Step by Step Guide to Creating cpn Numbers Legally Rating: 4 out of 5 stars4/5CompTIA Security+ Get Certified Get Ahead: SY0-701 Study Guide Rating: 5 out of 5 stars5/5SQL QuickStart Guide: The Simplified Beginner's Guide to Managing, Analyzing, and Manipulating Data With SQL Rating: 4 out of 5 stars4/5Standard Deviations: Flawed Assumptions, Tortured Data, and Other Ways to Lie with Statistics Rating: 4 out of 5 stars4/5Microsoft Azure For Dummies Rating: 0 out of 5 stars0 ratingsEverybody Lies: Big Data, New Data, and What the Internet Can Tell Us About Who We Really Are Rating: 4 out of 5 stars4/5CompTIA IT Fundamentals (ITF+) Study Guide: Exam FC0-U61 Rating: 0 out of 5 stars0 ratingsLearn Typing Rating: 0 out of 5 stars0 ratingsStorytelling with Data: Let's Practice! Rating: 4 out of 5 stars4/5What Video Games Have to Teach Us About Learning and Literacy. Second Edition Rating: 4 out of 5 stars4/5Fundamentals of Programming: Using Python Rating: 5 out of 5 stars5/5A Quickstart Guide To Becoming A ChatGPT Millionaire: The ChatGPT Book For Beginners (Lazy Money Series®) Rating: 4 out of 5 stars4/5The Musician's Ai Handbook: Enhance And Promote Your Music With Artificial Intelligence Rating: 5 out of 5 stars5/5Alan Turing: The Enigma: The Book That Inspired the Film The Imitation Game - Updated Edition Rating: 4 out of 5 stars4/5Computer Science I Essentials Rating: 5 out of 5 stars5/5The Professional Voiceover Handbook: Voiceover training, #1 Rating: 5 out of 5 stars5/5The Hacker Crackdown: Law and Disorder on the Electronic Frontier Rating: 4 out of 5 stars4/5
Reviews for C# Programming Fundamentals
0 ratings0 reviews
Book preview
C# Programming Fundamentals - James Lombard
INTRODUCTION
Welcome
Whether you are new to programming or already an experienced programmer, this book will guide you step-by-step into the exciting world of C# programming. Regardless of whether you choose to create Windows applications, Web applications, Xbox games, or Windows Mobile applications; the skills you will learn here are applicable to all these various trades.
C# has fast become one of the world’s most popular programming languages. Not only is it robust and powerful, but can be applied to many environments such as the PC, internet, and mobile devices.
This book will introduce you to all the major concepts of the C# language. While it’s not an exhaustive resource on the subject, it will give you a solid foundation from which you can expand your skills into more advance topics.
How is This Book Different?
Given, there are a multitude of introductory books on C# programming. Some will go into great depths while others may omit crucial basic concepts. After reviewing many of these books, it was decided that this book needs to reflect the everyday elements used in the real world. The text is short and to the point. It focuses on relaying a concept to you. Not only does this save you hours of studying cumbersome theory, but it gets you programming as quick as possible.
Experience has shown that newcomers to programming often get stuck on terminologies. So, every effort has been made to present this material to you in plane simple English. Only after explaining a concept, the correct terminology will be introduced.
Furthermore, this book is part of a growing series of C# tutorials that was written with a passion to teach C# programming. This is your first step to learning a skill that is not only fun, but also lucrative.
How to Use This Book
The chapters in this book were designed so that each chapter builds on the knowledge you’ve gained in the previous chapters. Each chapter also deals with a fundamental concept in C# so that you can easily use it for future reference.
The book is meant to be used as a work book, so we encourage you to tryout and work along with the examples that are presented in each chapter. This will not only familiarize you with the syntax of the C# language, but also the development environment.
Conventions
All programming examples and results will be presented by images from the actual editor or window. Other formatting in the text is meant to distinguish specific elements:
· Italics – A terminology.
· "Italics" – A custom name or literal text.
· Bold – A C# keyword, window, control, or menu option.
Trademarks
Microsoft, Windows, Visual Studio, C#, Visual C#, and .NET Framework, are registered trademarks of the Microsoft Corporation.
GETTING STARTED
Integrated Development Environment
The fastest way to learn and develop in C# is with Microsoft’s Visual Studio. This is a fully integrated development environment (IDE), which provides you with all the tools you require to develop complete applications from start to finish.
If you already have a version of Visual Studio installed, any version from Visual Studio 2005 upwards will do for the purposes of this book.
Microsoft provides an express edition of Visual Studio, which you can download, install and use without any charge. At the time of this writing, you can download and install Visual Studio 2010 Express from the following URL:
http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-csharp-express
Follow the installation instructions and remember to register your Visual Studio. It will install on any one of the following operating systems:
· Windows XP with Service Pack 3 (32 bit version)
· Windows Vista with Service Pack 2 (32/64 bit version)
· Windows 7 (32/64 bit version)
You’re system must meet the following minimum requirements:
· 1GB (32 bit) or 2GB (64 bit) memory
· 3GB Hard drive space
· DirectX 9
Setup the IDE
This book will refer to three windows in Visual Studio; the Editor, the Solution Explorer, and the Error List. The Editor will automatically be displayed when you start a new project, or open an existing C# file. The Solution Explorer and Error List windows can be activated from the top View menu if they’re not already displayed.
You can drag, size, and dock these windows as you please. Since the Editor is where you’ll be doing all the work, it makes sense to give it the majority of screen space. A common layout is to dock the Solution Explorer to the right and the Error List to the bottom of the IDE.
The Solution Explorer will display a tree view list of all the files that makes up your project. If an error is found, it will be displayed in the Error list, along with the line number where the error was found.
Once the Editor window opens and you find there are no line numbers, you can activate them through Tools > Options on the top menu. In the dialog window, expand Text Editor and select C#, then tick Line Number on