Basic C# Clearly Explained
4.6 (71 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
371 students enrolled
Wishlisted Wishlist

Please confirm that you want to add Basic C# Clearly Explained to your Wishlist.

Add to Wishlist

Basic C# Clearly Explained

A Friendly Invitation To Real C#
4.6 (71 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
371 students enrolled
Created by Tom O.
Last updated 4/2016
Current price: $10 Original price: $20 Discount: 50% off
5 hours left at this price!
30-Day Money-Back Guarantee
  • 2.5 hours on-demand video
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What Will I Learn?
  • Understand the basics of creating and running a simple console program
  • Understand how to print output to a console window
  • Create variables and set their values
  • Create variables and change their values and print them again
  • Describe an object with different data types
  • Understand how to use tool tips to understand code better
  • Use method chaining to write less
  • Use method nesting to write less code
  • Please look at the curriculum to see the rest of the topics covered
View Curriculum
  • Student should be able to download and install Visual Studio Community 2015

Dear Visitor,

C#, pronounced as C-sharp, is a powerful programming language from Microsoft. This course is only three hours long, with an average video length of about six minutes. The lessons are a combination of videos and presentations. Please be sure to look under "view resources" to find the code and the presentations. The code examples are simple and focus on only one or two concepts at a time to ensure you fully grasp the material presented. Since the concepts presented are of a fundamental nature, they apply to some extent also to languages like Java. The videos also including zooming, which means the key points are further emphasized to be sure you truly understand. C# has been and remains one of the most popular, and most powerful programming languages to learn. Let's get coding!

Note: Template for promo licensed from PRESENTERMEDIA

Who is the target audience?
  • Beginners should take this course
  • Intermediate programmers should not take this course
  • Advanced programmers should not take this course
Compare to Other C# Courses
Curriculum For This Course
31 Lectures
Why Choose C# and Visual Studio Community
3 Lectures 05:18

Main Idea: C# gives us the ability to build a great variety of software applications

Key Points:

  1. C# is pronounced "c sharp"
  2. A programming language is a set of instructions given to a computer so it can take certain actions
  3. C# is a programming language that can be used to create a great variety of different applications, like
    • Windows applications
    • web applications
    • video games for Windows and phones
  4. Many of the basic features of C# are very similar to the ones found in programming languages like Java
Preview 01:44

Main Idea: Visual Studio Community 2015 runs on computers that meet certain operating system and hardware requirements

Key Points:

  1. Search the Internet for "visual studio community 2015"
  2. The System Information window in Windows can be used to check whether a computer has the required:
    • operating system
    • processor
    • RAM memory capacity
    • free hard disk space
    • screen resolution
    • Additional requirements may apply, depending on the exact specifics of your computer
Preview 02:10

Main Idea: Visual Studio 2015 Community is free to download and use

Key Points:

  1. It's a large application, so patience is required when downloading and installing it
  2. As the application installs, errors can arise because each computer is different
  3. There are many available resources on the Internet to assist during the installation process
Downloading and installing Visual Studio Community 2015
Learning The Fundamentals of Programming In C#
13 Lectures 01:04:25

Main Idea: Console applications are the easiest place to begin learning C# programming

Key Points:

  1. Understand what a console application is
  2. Learn how to create a console application project in Visual Studio Community 2015
  3. Delete the default code and replace it with a simpler version
  4. Understand the simplified code in detail
  5. Learn how run the code
  6. Learn the meaning of the green and yellow lines that show in the code editor window

Preview 07:21

Main Idea: A program that can produce output is immediately more useful to a user

Key Points:

  1. Understand the purpose of using System;
  2. Add one line of code to the body of Main
  3. Understand the concept of a string as a sequence of characters between double quotes
  4. Understand how to change the environment font
Printing one line of output to a console window

Main Idea: C# comes with a large amount of functionality already prebuilt

Key Points:

  1. Name spaces are used to organize code
  2. Names spaces store classes
  3. Classes store methods
  4. IntelliSense makes Visual Studio Community 2015 easier to use by suggesting what functionality is available as we type code
Understanding the relationship between name spaces, classes and methods

Main Idea: Tool tips provide immediate access to a wealth of contextually relevant information

Key Points:

  1. Create a simple console application
  2. Add one line of code to print output
  3. Hover mouse over WriteLine, and go through the tool tip information that shows
Understanding code better through tool tips

Main Idea: Write less code, but accomplish the same results by adding the word "static" to a using statement

Key Points:

  1. Replace the using System; statement with using static System.Console;
  2. Understand how changing the using statement impacts code that can print output
Writing less code by changing the using statement

Main Idea: Visual Studio has many ways of accessing project files easily and quickly

Key Points:

  1. View the files that make a project by opening Windows file explorer
  2. Learn how to launch a project from the folder where it's stored
  3. Learn how to launch a solution from the folder where it's stored
  4. Understand that a solution can consist of multiple projects
Accessing project files

Main Idea: Variables are used to represent changing, or unknown quantities

Key Points:

  1. Understand the need for variables
  2. Become familiar with a possible mental model for representing variables
  3. Understand how to declare a variable, and set its value
  4. Learn how to use string interpolation and why the dollar symbol is needed
  5. Understand how to print a variable value using string interpolation
Things change. How can changing, or unknown quantities be represented in C#?

Main Idea: A programmer should never feel uncertain about the values of variables as a program runs

Key Points:

  1. Understand how to launch a program through the debugger
  2. Understand how the debugger helps to see variable values
  3. Become familiar with the concept of default values and how to see them in the debugger
Carefully tracking variable values with the debugger

Main Idea: C# has a variety of data types can be used together to produce accurate descriptions of objects

Key Points:

  1. Understand how to create and set multiple variables in C#
  2. Become familiar with the concept of camel casing in variable names
Describing objects in the world with different data types

Main Idea: There are many key combinations that make using Visual Studio much more efficient

Key Points:

  1. The tab key can move a block of highlighted code right
  2. The shift+tab key combination can move a highlighted block of code left
  3. Ctrl+M+P can be used to hide the little minus signs that allow us to collapse code
  4. Pressing alt and dragging can highlight a rectangle of code
  5. A context-sensitive menu is one that shows different options based on where a click occurs
Some useful key combinations to make working in Visual Studio easier

Main Idea: Visual Studio has a huge database of information already present, so time can be saved searching the Internet

Key Points:

  1. Add a line of code that generates an error
  2. Understand how to take a step towards understanding the error better
  3. Fix the error so the code works
  4. Understand that some errors prevent a program from being built, and some error sdo not prevent a program from being built

Finding the definition of various code components inside Visual Studio

Main Idea: C# has the same arithmetic operators, like addition, that we learned to use in school for basic math

Key Points:

  1. + symbol allows us to produce the sum of two values
  2. - symbol allows us to produce the difference of two values
  3. * symbol allows us to multiply two values
  4. Understand the purpose of tool tips that show when cursor is hovered over an operator
Producing useful output through simple calculations

Main Idea: To save time creating variables, it's possible to embed calculations directly in WriteLine

Drawback: The values calculated in WriteLine are not saved to variables, so they can't be used again

Key Points:

  1. Create two variables of type decimal
  2. Display the result of multiplying them directly inside WriteLine
Doing calculations inside WriteLine
Doing Slightly More Sophisticated C#
9 Lectures 49:29

Main Idea: Understanding the difference in results produced by the slash symbol

Key Points:

  1. Dividing two integer numbers using the slash symbol produces one result
  2. Dividing two double numbers using the slash symbol produces a different result
Understanding the results of division using the slash symbol

Main Idea: Understanding the difference between results produced when using the / and % for division

Key Points:

  1. The slash division symbol tells how many times whole the bottom of a division goes into the top
  2. The percent symbol tells the remainder of a division
Seeing the difference in division between % and /

Main Idea: A truly useful program might have to evaluate complex mathematical expressions

Key Points:

  1. The evaluation of mathematical expressions can be controlled using grouping symbols
  2. Mathematical expressions can be as simple or as complex as necessary
  3. Create and run code to find the average of three salaries
Using C# in a realistic program

Main Idea: Replace long expressions with more compact ones to save typing and space

Key Points:

  1. Understand how to add to and subtract from a variable, and save back to the same memory location
  2. Understand how to multiply and divide a variable, and save back to the same memory location
  3. Understand the relationship between x=x+1 and x+=1 and similar assignment statements
Typing less code by using compound operators

Main Idea: C# has two very compact operators that allow us to grow a variable value

Key Points:

  1. Understand the operation of ++x, which is the pre-increment operator
  2. Understand the operation of x++, which is the post-increment operator
  3. Understand how these operators execute inside WriteLine
Understanding how to add 1 to a variable before and after it's used

Main Idea: Some things do not change, and C# allows us to represent these in code

Key Points:

  1. Understand why constants are needed
  2. Create a constant in C#
  3. Understand how to make use of a constant in a calculation
  4. Understand what happens when an attempt is made to change a constant value
Representing quantities that never change

Main Idea: Variables have a life cycle, just like everything else, and understanding this cycle leads to fewer errors

Key Points:

  1. Understand the life cycle of a simple variable
  2. Become familiar with the concept of variable scope, or context
  3. Become familiar with the consequences of trying to reach a variable outside its scope
Understanding the life cycle of variables

Main Idea: It's possible to format output so it looks as best as possible to users

Key Points:

  1. C# has format specifiers like C for currency
  2. Format specifiers are embedded into output
  3. The logic presented in the video applies to most format specifiers
Formatting output so it looks more professional

Main Idea: The var keyword, in many cases, can recognize the data type of a variable automatically

Key Points:

  1. The var keyword can recognize the data type of a variable
  2. The var keyword can recognize the data type of a quantity that results from a calculation
  3. To check on the data type of an implicitly typed variable, hover your mouse over var
Using the var keyword to make coding easier
Collecting And Operating On Input
5 Lectures 27:44

Main Idea: Users expect to be able to interact with programs by entering input and receiving output

Key Points:

  1. Understand how to show a prompt
  2. Understand how to read string input
  3. Learn how to call a method on the input
  4. Create an example of output
  5. Understand how to ensure data types on the left side of "=" are equal
Making a program that can collect input and produce output

Main Idea: Reading numerical input requires a conversion step

Key Points:

  1. Read input first with ReadLine()
  2. Understand how to pass a variable into a method for processing
  3. Understand why double.Parse() is needed
  4. Understand how to ensure data types on the left and right sides of "=" match
Making a program that can collect numerical input and produce numerical output

Main Idea: Method nesting allows us to create less code

Drawback: Method nesting prevents us from saving variable values at each stage

Key Points:

  1. Understand how to replace two lines of code with one line of code
  2. Understand how to be sure the nested and nesting methods are compatible
Writing more compact code with method nesting

Main Idea: Method chaining allows us to process input using compactly written code

Drawback: Intermediate processing results are not saved in variables

Key Points:

  1. Understand how to replace multiple lines of code with a single line of code
  2. Understand the reason for using the methods in this particular example
  3. Understand that the data type of the value returned by the last method should match the data type of a variable
Processing input sequentially using method chaining

Main Idea: Data conversions allow one type of data to be converted to another type so it's easier to work with it

Key Points:

  1. Learn how to use the Read method to read an integer
  2. Understand how to convert an integer to a character
  3. Become familiar with the concept of an explicit data cast
Understanding why it's necessary to convert between data types
1 Lecture 00:40

Key Points:

  1. C# remains popular as a programming language
  2. There are many jobs in C#
  3. It's always a great tool for tinkering and learning more
  4. Please note the 20 hour course is considerably more challenging
Where to go from here to grow your skills
About the Instructor
Tom O.
4.4 Average rating
1,657 Reviews
17,733 Students
19 Courses
Web, Math, Stats., and Physics Expert
  • I have nine years experience as a teacher of mathematics, physics, statistics, and programming. I worked for five years as a database programmer using various technologies such as .NET, Clipper, SQL, SQL Server, SAS, Excel, and others. I'm the publisher of one of the most successful programming courses on udemy, called "Learn C# With Visual Studio 2013". Currently, I work as a mathematics and computer science teacher at a college in NY.
  • Related Education:
  • Master of Science in Applied Statistical Computing, Kennesaw State University
  • Bachelor of Arts, Pure Mathematics, Queens College
  • Associates of Science in Computer Programming
  • Creator of more than 1620 math, physics, statistics and programming videos
  • Programmer of more than 500 educational simulations