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
C# Programming Illustrated Guide For Beginners & Intermediates: The Future Is Here! Learning By Doing Approach Rating: 0 out of 5 stars0 ratingsC# Programming from Zero to Proficiency (Introduction): C# from Zero to Proficiency, #0 Rating: 0 out of 5 stars0 ratingsC# Programming from Zero to Proficiency (Beginner): C# from Zero to Proficiency, #2 Rating: 0 out of 5 stars0 ratingsC# For Beginners: An Introduction to C# Programming with Tutorials and Hands-On Examples Rating: 0 out of 5 stars0 ratingsMastering C# 8.0: Master C# Skills with Hands-on Code Examples (English Edition) Rating: 0 out of 5 stars0 ratingsLearn WPF MVVM - XAML, C# and the MVVM pattern Rating: 4 out of 5 stars4/5Unity from Proficiency to Mastery (C# Programming): Unity 5 from Proficiency to Mastery, #2 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 ratingsA Quick Guide to c# with Unity: Quick Guides, #1 Rating: 5 out of 5 stars5/5C++ Programming Language: Simple, Short, and Straightforward Way of Learning C++ Programming Rating: 4 out of 5 stars4/5Visual Studio Code: End-to-End Editing and Debugging Tools for Web Developers Rating: 0 out of 5 stars0 ratingsC# 7 and .NET Core Cookbook Rating: 0 out of 5 stars0 ratingsProgramming Concepts in C++ Rating: 0 out of 5 stars0 ratingsC Programming For Beginners: The Simple Guide to Learning C Programming Language Fast! Rating: 5 out of 5 stars5/5Microsoft Visual C++ Windows Applications by Example Rating: 4 out of 5 stars4/5C Programming for Beginners: Your Guide to Easily Learn C Programming In 7 Days Rating: 4 out of 5 stars4/5ASP.NET and VB.NET in 30 Days: Acquire a Solid Foundation in the Fundamentals of Windows and Web Application Development Rating: 0 out of 5 stars0 ratingsStart-to-Finish Visual C# 2015 Rating: 5 out of 5 stars5/5Objective-C Programming Nuts and bolts Rating: 0 out of 5 stars0 ratingsC Programming Language Rating: 4 out of 5 stars4/5Mastering C# and .NET Framework Rating: 5 out of 5 stars5/5Modern C++ Programming Cookbook Rating: 5 out of 5 stars5/5PROGRAMMING IN C# 10 - Basic Techniques Rating: 2 out of 5 stars2/5Thinking In C# Programming. Rating: 0 out of 5 stars0 ratingsFunctional C# Rating: 5 out of 5 stars5/5
Computers For You
The Invisible Rainbow: A History of Electricity and Life Rating: 5 out of 5 stars5/5Procreate for Beginners: Introduction to Procreate for Drawing and Illustrating on the iPad Rating: 0 out of 5 stars0 ratingsSlenderman: Online Obsession, Mental Illness, and the Violent Crime of Two Midwestern Girls 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/5Elon Musk 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/5CompTIA IT Fundamentals (ITF+) Study Guide: Exam FC0-U61 Rating: 0 out of 5 stars0 ratingsMastering ChatGPT: 21 Prompts Templates for Effortless Writing Rating: 5 out of 5 stars5/5101 Awesome Builds: Minecraft® Secrets from the World's Greatest Crafters Rating: 4 out of 5 stars4/5The Professional Voiceover Handbook: Voiceover training, #1 Rating: 5 out of 5 stars5/5The Complete Powershell Training for Beginners 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/5The ChatGPT Millionaire Handbook: Make Money Online With the Power of AI Technology Rating: 4 out of 5 stars4/5The Hacker Crackdown: Law and Disorder on the Electronic Frontier Rating: 4 out of 5 stars4/5Alan Turing: The Enigma: The Book That Inspired the Film The Imitation Game - Updated Edition Rating: 4 out of 5 stars4/5CompTIA Security+ Get Certified Get Ahead: SY0-701 Study Guide Rating: 5 out of 5 stars5/5Uncanny Valley: A Memoir 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/5Ultimate Guide to Mastering Command Blocks!: Minecraft Keys to Unlocking Secret Commands Rating: 5 out of 5 stars5/5CompTIA Security+ Practice Questions Rating: 2 out of 5 stars2/5Deep Search: How to Explore the Internet More Effectively Rating: 5 out of 5 stars5/5The Huffington Post Complete Guide to Blogging Rating: 3 out of 5 stars3/5
Reviews for C# Programming Fundamentals
0 ratings0 reviews
Book preview
C# Programming Fundamentals - James Lombard
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