About

Monday, September 16, 2019

CLR : Common Language Runtime 


The Runtime Environment of .NET Framework is Called Common Language Runtime.  It manages the execution of Managed Code (.NET Programs). 

CLR uses a just-in-time (JIT) compiler which converts the compiled code of .NET into Native Code.

Example : 

Language Compilers (e.g. C#, VB.Net, J#) convert the .NET Program Code to Microsoft Intermediate Language (MSIL) and this is further converted to Native Code by JIT Compiler of CLR.



Functionality  Of CLR

CLR provides many functionality like it loads and executes the code, manages the memory, converts the MSIL code to native code, and handles the exception.

CLR will support below functionality:

  • Memory Management
  • Code Access security
  • Garbage Collection
  • JIT Compilation
  • Thread Support
  • Debug Engine
  • Exception Handling 


Conclusion :  This tutorial will teach you how CLR works in dot net frame functionality.







Dot Net Introduction

Dot Net is a software framework which is designed and developed by Microsoft 
Dot Net is a framework and it is development platform, it will support more then one programming language to run/execute applications.

It will support more then 24 programming languages 

Example : 
1. C#
2. VB.net
3. F#
4 etc..

Dot net framework architecture 


1. C# : 

  • NET isn't just a library, but also a runtime for executing applications.
  • The knowledge of C# implies some knowledge of .NET (because the C# object model corresponds to the .NET object model and you can do something interesting in C# just by using .NET libraries). The opposite isn't necessarily true as you can use other languages to write .NET applications
  • One of the best program language and very easy to learn development functionality.This is very user/developer  friendly language.  

2. CLS( Common language specification) : 


CLS stands for common language specification and it is a subset of CTS(Common type system). it defines a set of rules and restrictions that every language must follow which runs under the dot net framework. the language which follow these set of rules are said to be CLS complaint. 
Example : 
if we consider about C# and etc... languages, in each statement end with semicolon.

C# program : 
static void Main(string[] args)
{
            Console.WriteLine("Hello Prasad KM");
            Console.Read();
}

But in VB.Net each statement should not end with semicolon(;)

3. CTS(Common type system):

Common type system describe the datatypes that can be used by managed code. CTS define how these types are declared. Used and managed in the runtime . cross-language integration type safety and high performance code execution 

Example :  Int32 VariableName = 0;




Conclusion :  
1. Dot net framework is common developer platform, it will support more then 14 languages.
2. CLS and CTS is very important for to understand dot net framework architecture functionality 

Summary : This is completely basic knowledge for to understand dot net functionality.

Please add your comments. thank you.







Sunday, September 15, 2019

Start New Project with Visual Studio Community version


Step 1 : Start/Open Visual Studio
Step 2 : 
File --> New-->Projects
  
Step 3 : Create New Console Project


Step 4 : Add hello word text and run the project

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp3
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello Prasad KM");
            Console.Read();
        }
    }
}
Step 5 : Press build -->Build Solution(No compile error)
Step 6 : Press Debug-->Run the project
Step 7 : Expected result in console prompt 

Hello Prasad KM on console application prompt:




Conclusion :
How we can create the simple application using visual studio.

Some one can suggest me I have missed in above steps thank you











How we can install the Visual Studio community


Step 1 :
Open Micro Soft web site : 

Step 2 Please find below yellow colour marks. 


Step 3 :
Install all functionality with using below image selection for dot net functionality.

Step 4 : Start your own project.


Conclusion : 
This page will teach you how we can install the visual studio community version.

Summary :  
Visual Studio community version is free for developer and students.