CSharp-Introduction-and-Fundamentals

C # Fundamentals and Introduction

licence badge stars badge issues badge

Home badge

C sharp Introduction and Fundamentals

đź’š Simple thought makes it simple 
   “Learn by doing. 
       Always play with the code while learning” 💚

Common Language Runtime

Purpose is to translate code into machine.

Similar to the Java, the compile process have compile time and runtime process. The first is to translate source code into byte code using Common Intermediate Language (CIL). The latter is to translate the byte code into the native code, using Common Language Runtime (CLR).

CLR

Architecture .NET

In a nutshell, we said, application is a building block of classes

Architecture .NET

Class and Example

Simple Explanation

One class will have two main important things as properties or called data, and method called functions or how/what to do with the data.

Class example

Example in Code

Like a class of Student, its properties could be studentID, student name, mark and its methods such as average mark that each student get.

Simple Csharp Application

Simple Application

Namespaces

Namespace is a Way to organize classes

Namespace

Assembly

Assembly is Related namespaces (Dynamic Linked library (DLL) or EXE)

Assembly

Application

Simple Explanation

Application is collections of Assemblies

Application

Simple example

Main Class The parameter of the Main method is a String array that represents the command-line arguments

simple example of application

The first Tip: Play with Code

“Learn by doing. Always play with the code while learning”