Monday, December 7, 2009

Dot Net starters

Why Dot Net / Why C sharp ? Vs Java development- C# 3.0, VS 3.5

----------------------------------------------------------

1. language Interoperability - In Dot Net any language can be used, which is then compiled by the CLR. This is also cross platform compatible.

Here is the of Net framework diagram-


C++ C# VB.net Perl
-----------------------------

Windows Forms
Mobile Internet
Web Form
Web Services
------------------------------
ADO , .Net AND XML – Data Access Layer
------------------------------
.Net Class Library
------------------------------
CLR – Different for diff OS- same as JVM in Java
------------------------------
OS
------------------------------


Responsibility of CLR-

  • Memory management- Reference count, If not incremented, then garbage collected.
  • CTS- Common Type System -Language Interoperability
  • Life Cycle Monitoring
After interpreting & compiling, we get the .exe file.

Source Code-(Compilation) -> MSIL -->JIT compiler --> Native Code


Some more learning-
  • MSIL- Microsoft Intermediate language
  • To run the app from command prompt, either give the path in the environment variable or use the command prompt from the the VS folder.
  • To run a specific file after compiling, right click on the solution & change the "startup project" to the project that you want to run.
  • Native Executable vs Portable Executable -
    Native executable is a normal executable file which is directly executed from the OS- like notepad.exe .
    Portable executable -executed by CLR on top of OS.
  • Managed Vs unmanaged code -
    Managed - which is interpreted by the CLR,
    Unmanaged - To use Legacy code including a COM component.
  • Difference of Build vs Debug-
    Build- .exe file is created
    Debug- Executes line by line but exe file is not created.
  • In 1 application, there should be only 1 entry point.


No comments:

Post a Comment