Apprentice C#

This course was created to help beginner software developers to be able to develop simple Software Applications using the C# programming language. 

Posted by Rishi Raj Gujadhur 1/3/2016


Table of content:

 
 

1. Messagebox

In this tutorial you can learn how to create a windows form and create a simple message box.



The MessageBox class is used to display a message window, also known as a dialog box, which presents a message to the user.  It is a modal window, blocking other actions in the application until the user closes it. A MessageBox can contain text, buttons, and symbols that inform and instruct the user. (Microsoft)
 
 

2. Datatypes

In this tutorial you can learn the various c# variable's datatypes.



In computer science and computer programming, a data type is a classification identifying one of various types of data, such as integer or string, that determines the possible values for that type and the operations that can be done on values of that type. (Wikipedia)
 
 

3. Declaring and Initializing variables

In this tutorial you can learn how to Declare and Initialize variables properly.



In computer programming, a variable is a storage location paired with an associated symbolic name (an identifier), which contains some known or unknown quantity of information referred to as a value. (Wikipedia)
 
 

4. Comments



Comments are portions of the code ignored by the compiler which allow the user to make simple notes in the relevant areas of the source code. Comments come either in block form or as single lines. Single-line comments , start with // and continue until the end of the line. (Wikibooks)
 


5. Designing a windows form

In this video you can learn how to design a windows form.


A Windows Forms application is an event-driven application supported by Microsoft's .NET Framework. Unlike a batch program, it spends most of its time simply waiting for the user to do something, such as fill in a text box or click a button. (Wikipedia)
 
 

6 - Methods

In this tutorial you can learn how to use methods without parameters.



A method in object-oriented programming is a procedure associated with an object class. An object is made up of behavior and data. Data is represented as properties of the object and behavior as methods. Methods are also the interface an object presents to the outside world. For example a window object would have methods such as open and close. One of the most important capabilities that a method provides is method overriding. The same name (e.g., area) can be used for multiple different kinds of classes. This allows the sending objects to invoke behaviors and to delegate the implementation of those behaviors to the receiving object. For example an object can send an area message to another object and the appropriate formula will be invoked whether the receiving object is a rectangle,circle, triangle, etc. (Wikipedia)
 

7. Parameterised Methods

I this tutorial you can learn how to create Parameterised Methods.



A method in object-oriented programming is a procedure associated with an object class. An object is made up of behavior and data. Data is represented as properties of the object and behavior as methods. Methods are also the interface an object presents to the outside world. For example a window object would have methods such as open and close. One of the most important capabilities that a method provides is method overriding. The same name (e.g., area) can be used for multiple different kinds of classes. This allows the sending objects to invoke behaviors and to delegate the implementation of those behaviors to the receiving object. For example an object can send an area message to another object and the appropriate formula will be invoked whether the receiving object is a rectangle,circle, triangle, etc. (Wikipedia)
 
 

8. Classes

In this tutorial you can learn how to create and instantiate classes.



Class In object-oriented programming, a class is an extensible program-code-template for creating objects, providing initial values for state (member variables) and implementations of behavior (member functions or methods). (Wikipedia)
 
 

9. Datatype Conversion

Datatype Conversion is a very important concept in c# and this video teaches it to you.



Data types can be converted in the following scenario:
When data from one object is moved to, compared with, or combined with data from another object, the data may have to be converted from the data type of one object to the data type of the other. (Microsoft)
 


10. .ToString() parameters

Adding ToString() parameters can refine you application and this tutorial teaches you exactly how to do so.



Types frequently override the Object.ToString method to provide a more suitable string representation of a particular type. Types also frequently overload the Object.ToString method to provide support for format strings or culture-sensitive formatting. In this section: The default Object.ToString() method. (Microsoft)
 
 

11. Conditional Statements

Very often when you write code, you want to perform different actions for different decisions. ​You can use conditional statements in your code to do this.



In c# or JavaScript we have the following conditional statements:

1. Use if to specify a block of code to be executed, if a specified condition is true
2. Use else to specify a block of code to be executed, if the same condition is false
3. Use else if to specify a new condition to test, if the first condition is false. (w3schools)   
 


12 - Comparison Operators

In this tutorial you can learn comparison operator which can be used in any object oriented language like c# and java



Comparison and Logical operators are used to test whether a condition evaluates to true or false. Comparison operators are used in logical statements to determine equality or difference between variables or values. (w3schools)
 
 

13. For Loop and While Loop

In this video you can learn how to use for Loop as well as the while Loop.



In computer science a for loop is a programming language control statement for specifying iteration, which allows code to be executed repeatedly. (Wikipedia)