C# – In this tutorial, you will get the information about c# introduction, family derivation and overview of c# programs with explanations.
C#.NET
- Pure object oriented language. (Each and everything in c# is an object. Ex. int k=99; here int is an object in C#.NET)
- Unlike java, each data type in c# is object type
- Product of Microsoft corporation
- C# is a high level programming language (3G PL)
- Like java, c# is compiled and interpreted language (two way language)
FEATURES OF C#
- Pure Object oriented
- Compiled and interpreted language
- Modern language
- Flexible support (explicit support for pointers)
- Garbage Collection
- Namespaces (called package in java)
- Boxing & Unboxing features (converting one type to another one)
- Multithreading support
- Exception Handling
FAMILY OF C#
OVERVIEW OF C#
- C# can be used to develop two categories of programs. They are
- Executable Program (Direct Access)
- Library Program (Indirect Access)
Executable Program
- It should have the main method() in the program. So no need to create client application to get the output
- It can be accessed directly
- Output: .exe
Library Program
- It does not have a main method(). So we should create a user application to access this library program.
- It is very similar to c language header files / java system packages
- It can be accessed indirectly with help of end user application
- Output: .dll
DIFFERENCES BETWEEN EXECUTABLE PROGRAM AND LIBRARY PROGRAM
S.N | EXECUTABLE PROGRAM | LIBRARY PROGRAM |
1. | It must have Main() | It doesn’t have Main() method |
2. | It can be accessed by directly | It can be accessed by indirectly by using end user application |
3. | Output: .exe | Output: .dll |
OTHER TUTORIALS