C# Programming Illustrated Guide For Beginners & Intermediates: The Future Is Here! Learning By Doing Approach
3.5/5
()
About this ebook
C# Programming Illustrated Guide For Beginners & Intermediates
Learn Coding Fast! With Practical Easy To Follow Examples And Step By Step Instructions!
Why should you choose to learn C# programming?
C sharp programing was developed by Microsoft and is USED in all their products!
C# is definitely a great way to get started in the world of programming, and since one of the biggest software giants (Microsoft) developed this language it would make sense to learn from one of the most popular languages and most influential software developer in the history of the world!
This book offers illustrated step by step examples for you to learn from. No more boring 500+ page text books to read from, my book goes straight to the point and provides practical examples you can use for a more hands on approach.
Real Life Practical Uses of C#
Windows Services
Web Applications
Windows Applications
Web Services
Games
Console Applications
Work-Flow Applications
Class Libraries
C# programming is becoming more and more popular with each passing day simply because it's an easy to learn language, robust, comprehensive, practical, and a general purpose language.
C# programming is an in demand skill sought out by many employers and corporations worldwide!
So not only was it created by arguably one of the biggest software/tech giants in history, but it is also a skill that has a HUGE job prospect in today's modern world.
What You Will Learn
Object-Oriented Language & programming
Variables and Data Types
User Input and Console Output
Conditional Statements
Functions in C#
String Manipulation in C#
Polymorphism & Encapsulation
Practical Examples
And, much, much more!
Most books on programming languages can be expensive! - And Colleges charge you a fortune just for an introductory lessons.
My book is only a fraction of the price! Why not get started off at an affordable and reasonable price?
The greatest investment you can make is an investment in yourself. Invest in your knowledge base, and my book is your best starting point for both beginners and intermediates.
This is your in depth comprehensive guide with practical examples and illustrations to learn C# programming, whether you want to develop the skillet set for personal reasons or have a better chance at the job market using these highly desired and sought after skills, -this book is made just for you!
Its scientifically proven that illustration can help with your knowledge retention over 110%!
What are you waiting for? Make the greatest investment in yourself and grab a copy of this book.
Buy Now!
William Sullivan
William Sullivan has over 25 + years experience in the field of software/programming. He was born in 1978 in Seattle, Washington. He's worked for many leading USA and international based companies where he's brought on board his talents, highly desirable skill sets, creativity and innovation. From humble beginnings William Sullivan worked his way up the corporate ladder to becoming an influential programmer. He was an only child and had a single parent mom, who always encouraged him to pursue higher education and a better life. They lived pay cheque to pay cheque, she worked over time and erratic shifts. His mother always made sure he had the necessities of life such as food, clothing , and shelter. William was always fascinated with technology building computers from scratch, programming, etc. His mother did everything she could to satisfy his insatiable curiosity by buying him books on software, programming, hardware and almost anything that related to computer technology. He states reading in his leisure time with the resources provided from his mother's very limited income was really the foundational corner stone that brought him the success he has today. He majored in computer science and was granted a full academic scholarship and graduated with honors. He has now since then moved to California and is married with three children. He works various high paying jobs on contract basis, and writes in his free time. He loves to travel, taste different cuisines and experience different cultures. He's gracious for the life changing opportunities he's received and wants to give back through writing books that are affordable for anybody interested in becoming more tech-savvy.
Read more from William Sullivan
Python Machine Learning Illustrated Guide For Beginners & Intermediates:The Future Is Here! Rating: 5 out of 5 stars5/5Markov Models Supervised and Unsupervised Machine Learning: Mastering Data Science And Python Rating: 2 out of 5 stars2/5Machine Learning For Beginners Guide Algorithms: Supervised & Unsupervsied Learning. Decision Tree & Random Forest Introduction Rating: 0 out of 5 stars0 ratingsThe Ship in the Hill Rating: 0 out of 5 stars0 ratingsThe Case of Einstein's Violin Rating: 0 out of 5 stars0 ratingsHiking Oregon's History Rating: 0 out of 5 stars0 ratingsCabin Fever Rating: 0 out of 5 stars0 ratingsThe Case of D.B. Cooper's Parachute Rating: 0 out of 5 stars0 ratingsA Deeper Wild Rating: 0 out of 5 stars0 ratingsOregon's Greatest Natural Disasters Rating: 0 out of 5 stars0 ratings
Related to C# Programming Illustrated Guide For Beginners & Intermediates
Related ebooks
C# Programming Illustrated Guide For Beginners & Intermediates: The Future Is Here! Learning By Doing Approach Rating: 0 out of 5 stars0 ratingsMastering C# and .NET Framework Rating: 5 out of 5 stars5/5C# For Beginners: An Introduction to C# Programming with Tutorials and Hands-On Examples Rating: 0 out of 5 stars0 ratingsC# Programming Fundamentals 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 ratingsFunctional C# Rating: 5 out of 5 stars5/5Mastering C# 8.0: Master C# Skills with Hands-on Code Examples (English Edition) Rating: 0 out of 5 stars0 ratingsC# 7 and .NET Core Cookbook Rating: 0 out of 5 stars0 ratingsC# for Beginners: Learn in 24 Hours Rating: 0 out of 5 stars0 ratingsC language Programming: Simple, Short, and Straightforward Way of Learning C Programming Rating: 3 out of 5 stars3/5Learn WPF MVVM - XAML, C# and the MVVM pattern Rating: 4 out of 5 stars4/5C# Programming Cookbook Rating: 0 out of 5 stars0 ratingsC Programming for Beginners: Your Guide to Easily Learn C Programming In 7 Days Rating: 4 out of 5 stars4/5Beginning Programming with C++ For Dummies Rating: 4 out of 5 stars4/5C++ Learn in 24 Hours Rating: 0 out of 5 stars0 ratingsAPI Design for C++ Rating: 3 out of 5 stars3/5Code like a Pro in C# Rating: 0 out of 5 stars0 ratingsStart-to-Finish Visual C# 2015 Rating: 5 out of 5 stars5/5C Programming For Beginners: The Simple Guide to Learning C Programming Language Fast! Rating: 5 out of 5 stars5/5Objective-C Programming For Dummies Rating: 4 out of 5 stars4/5Programming Concepts in C++ Rating: 0 out of 5 stars0 ratingsC# Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsIntroduction to Programming Languages Rating: 4 out of 5 stars4/5C Programming Concepts 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 ratingsProgramming for Everyone Rating: 3 out of 5 stars3/5C# Programming from Zero to Proficiency (Introduction): C# from Zero to Proficiency, #0 Rating: 0 out of 5 stars0 ratings
Programming For You
Python Programming : How to Code Python Fast In Just 24 Hours With 7 Simple Steps Rating: 4 out of 5 stars4/5Python: For Beginners A Crash Course Guide To Learn Python in 1 Week Rating: 4 out of 5 stars4/5SQL QuickStart Guide: The Simplified Beginner's Guide to Managing, Analyzing, and Manipulating Data With SQL Rating: 4 out of 5 stars4/5Coding All-in-One For Dummies Rating: 4 out of 5 stars4/5Learn to Code. Get a Job. The Ultimate Guide to Learning and Getting Hired as a Developer. Rating: 5 out of 5 stars5/5Pokemon Go: Guide + 20 Tips and Tricks You Must Read Hints, Tricks, Tips, Secrets, Android, iOS Rating: 5 out of 5 stars5/5Python Machine Learning By Example Rating: 4 out of 5 stars4/5SQL: For Beginners: Your Guide To Easily Learn SQL Programming in 7 Days Rating: 5 out of 5 stars5/5HTML & CSS: Learn the Fundaments in 7 Days Rating: 4 out of 5 stars4/5Learn SQL in 24 Hours Rating: 5 out of 5 stars5/5Java for Beginners: A Crash Course to Learn Java Programming in 1 Week Rating: 5 out of 5 stars5/5Linux: Learn in 24 Hours Rating: 5 out of 5 stars5/5101 Amazing Nintendo NES Facts: Includes facts about the Famicom Rating: 4 out of 5 stars4/5PYTHON: Practical Python Programming For Beginners & Experts With Hands-on Project Rating: 5 out of 5 stars5/5Excel : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Excel Programming: 1 Rating: 5 out of 5 stars5/5SQL All-in-One For Dummies Rating: 3 out of 5 stars3/5Grokking Algorithms: An illustrated guide for programmers and other curious people Rating: 4 out of 5 stars4/5Teach Yourself C++ Rating: 4 out of 5 stars4/5Python Projects for Beginners: A Ten-Week Bootcamp Approach to Python Programming Rating: 0 out of 5 stars0 ratings
Reviews for C# Programming Illustrated Guide For Beginners & Intermediates
3 ratings2 reviews
- Rating: 5 out of 5 stars5/5The illustrations make understanding easier.
I would encourage learning from this book.1 person found this helpful
- Rating: 5 out of 5 stars5/5This book help me learn C# fundamentals very quick. A great book for beginners like me:-)
1 person found this helpful
Book preview
C# Programming Illustrated Guide For Beginners & Intermediates - William Sullivan
inaccuracies.
Chapter 1 - Introduction
C# is the Microsoft’s premier language for software development. Microsoft developed C# between 1999 and 2002. In the year 2002, the first version of C# was released to the general public as an integral part of the .NET framework. Since then C# has taken over Visual Basic as the default language of choice for .NET programmers.
C# is one of the most powerful programming languages on the planet. Fully object-oriented and strongly typed, C# is currently being used for web development as backend language for ASP.NET web development framework. It is also widely being as backend language for Windows Forms and Windows Presentation Framework applications. In the world of mobile application development, C# is ruling the Windows Phone development arena.
Salient Features of C#
Following are some of the most important features that make C# so powerful and versatile:
1. Object-Oriented Language
C# is 99.9% object oriented. Like Java, apart from the primitive data types, everything in C# is an object. An object has some properties and can perform some functions. We will see object-oriented programming in detail in a future chapter. For now, just remember that it is the object-oriented programming owing to which C# is modular and maintainable.
2. Strongly Types
C# is a strongly typed language which means that you have to specify the type of data before the program compiles. This is also known as type-safety, which makes C# applications more robust and less prone to run-time errors.
3. Automatic Garbage Collection
In C#, the garbage collection is performed automatically. After a certain amount of time, .NET framework runs garbage collector automatically which removes all the unused objects and dangling pointers from the memory.
4. Easy to Learn
Unlike C or C++, which are considered mid-level programming languages, C# is very high level. Most of the functionalities that require careful handling in C or C++ such as pointers and memory management are handled by default in C#. You can literally set yourself up and write a C# program in less than 10 minutes.
5. Application Range
Since C# is Microsoft’s premier programming language, almost every Microsoft technology depends upon it. For instance, ASP.NET framework runs C# as backend language, Windows Phone development also utilizes C# and, Windows Form and Windows Presentation Framework (WPF) also depend heavily on C#.
6. Part of Visual Studio
Microsoft’s Visual Studio is one of the most widely used IDEs in the world and C# is the part of Visual Studio languages which highlights the importance and power of the language.
7. Huge Developer Community
C# has a huge developer community. You can get help almost immediately about any problem that you might face during C# development. On www.stackoverflow.com, C# has the 4th largest community. Not to mention that www.stackoverflow.com was also developed using C#.
In short, C# has everything that it takes to become a professional programmer. Enough of the theory, in the next section, we will install the environment that we are going to use to run our application.
Environment Setup
Ideally, to run the C# application, you should have a window machine with .NET framework installed. However, for the starters, I would recommender simply downloading the latest version of Visual Studio, which installs everything that you need to run your C# programs. Visual studio is the first choice IDE for C#.
The latest version of the visual studio can be downloaded here. Once you open the link, you should see the following interface:
Visual Studio comes in three versions: Community, Professional, and Enterprise. The Community version is free of cost while the Professional and Enterprise versions are not free. For the sake of this book, we will only use the Community version. To download the community version, you only need Microsoft account which you can create for free if you do not already have. Visual Studio installation is very straightforward and can be done with few clicks of the mouse.
Running Your First Program
Follow these steps to run your first C# program.
Open Visual Studio. You can do so by searching Visual Studio
at the windows search box as shown below:
From the top menu, select File -> New -> Project. Look at the following screenshot for reference.
You will see a list of different types of programs that you can create with C#. Select Console App (.NET Framework)
, give any name to your application, I named it MyProgram
. Click OK button.
You will see a window where you can write C# code. Write the following code in the window and press the green triangle with label Start
, from the top menu. I will explain what is happening later.
Once you execute the script above, you will see that a console window, like the command line, will appear that will contain the message Congratulations, you wrote your first Program
as shown below:
Now let’s see what is actually happening. Take a look at the code that we wrote:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MyProgram
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine(Congratulations, you wrote your first Program
);
Console.ReadKey();
}
}
}
The using statements at the top of the code are used to import any libraries. Libraries are basically set of pre-built functions that we can directly use in our code. Every code snippet in C# has to be inside a class which in turn lies inside a namespace. In the script above our class name is Program and it lies inside the MyProgram namespace.
Inside the Program class, we have method Main whose return type is void and method type is static. This is the starting point of our code. Do not worry much about the terms void and static at the moment. We will see these terms in detail in a later chapter. For now, just remember that the Main method is the starting point of C# code.
Next, we write a simple line on the screen. To do so, we used WriteLine method of the Console class and passed it the text that we wanted to display on the console window. Finally, we used the ReadKey method of the Console class so that our console window doesn’t disappear immediately after printing the text. And that’s pretty much it. Congratulations on successfully executing your first program.
Conclusion
C# is one of the most frequently used programming languages in the world. In this chapter, we studied some of the salient features of C# followed by the environment setup. To get our feet wet, we actually ran a very small program to see how C# program executes. In the next chapter, we will start our discussion about Data types in C#.
Chapter 2 – Variables and Data Types
Type safety is one of the most important features of C# language. In C#, the type of the data is specified at compile time which makes the application robust. In this chapter, we will see how C# handles a variety of data ranging from numbers to texts and dates to Boolean. However, before that, we will define what is a variable is.
Variable
A variable in C# is a code feature that is used to store data that is changed repeatedly. A variable in C# is similar to the variable in Mathematics to which a new value can be assigned, updated and deleted. Normally a variable is used to store data