Session 4 Programming in C#


The .NET Framework Architecture 3-8



Download 1.55 Mb.
Page3/7
Date06.08.2023
Size1.55 Mb.
#61811
1   2   3   4   5   6   7
Session 01

The .NET Framework Architecture 3-8

  • All the transformations are supported by the technology platform introduced by Microsoft called as .NET Framework.
  • Data stored using the .NET Framework is accessible to a user from any place, at any time, through any .NET compatible device. 
  • The .NET Framework:
    • Is a programming platform that is used for developing Windows, Web-based, and mobile software.
    • Has a number of pre-coded solutions that manage the execution of programs written specifically for the framework.
  • Building Applications Using C# / Session 1

The .NET Framework Architecture 5-8

  • In traditional Windows applications:
    • Codes were directly compiled into the executable native code of the operating system.
  • Using the .NET Framework:
    • The code of a program is compiled into CIL (formerly called MSIL) and stored in a file called assembly.
    • This assembly is then compiled by the CLR to the native code at run-time.
      • The following figure represents the process of conversion of CIL code to the native code:
  • Building Applications Using C# / Session 1

The .NET Framework Architecture 6-8

  • The CLR provides many features such as:
  • The applications that run under the CLR are called managed code.
  • Building Applications Using C# / Session 1

Garbage Collection

  • Native vs. Managed Languages
    • Native languages are compiled to machine code
    • This is the code which is unique to a particular OS
    • Only executed in the environment in which it is compiled
    • Distinct compilers are required for each OS
    • Common native languages: C, C++, Objective-C
    • Managed languages are compiled to intermediate format
    • Typically are cross-OS compatible e.g. C#, Java
    • C# is compiled to bytecode, not machine language
    • Bytecode is executed on runtime by CLR
    • So no need to re-compile the code

Download 1.55 Mb.

Share with your friends:
1   2   3   4   5   6   7




The database is protected by copyright ©ininet.org 2024
send message

    Main page