Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a CLR class?

Tags:

I googled CLR and found out what it is from wikipedia, but I wanted to know what a CLR class or more specifically a CLR entity type is (especially in ASP.NET).

like image 663
Ratnesh Chandna Avatar asked Feb 23 '12 07:02

Ratnesh Chandna


People also ask

What is the purpose of CLR?

The Common Language Runtime (CLR), the virtual machine component of Microsoft . NET Framework, manages the execution of . NET programs. Just-in-time compilation converts the managed code (compiled intermediate language code) into machine instructions which are then executed on the CPU of the computer.

What is CLR in .NET with example?

NET CLR. As part of the Microsoft . NET Framework, the Common Language Runtime (CLR) is the programming (Virtual Machine component) that manages the execution of programs written in any language that uses the . NET Framework, for example C#, VB.Net, F# and so on.

What is CLR architecture?

The Common Language Runtime in the . NET Framework is the Virtual Machine component that handles program execution for various languages such as C#, F#, Visual Basic .

What is difference between CLR and Cls?

In short, the CLR defines all the capabilities available to applications and modules written for the . NET Framework. The CLS defines the set of rules to which languages must conform to work in this framework.


2 Answers

CLR is not class. The Common Language Runtime (CLR) is the virtual machine component of Microsoft's .NET framework . This runtime environment in .NET Framework is known as Common Language Runtime (CLR).

image from wiki which explain what clr can do

enter image description here

CLR provides the following benefits for developers:

  • Vastly simplified development.
  • Seamless integration of code written in various languages.
  • Evidence-based security with code identity.
  • Assembly-based deployment that eliminates DLL Hell.
  • Side-by-side versioning of reusable components.
  • Code reuse through implementation inheritance.
  • Automatic object lifetime management.
  • Code access security.
  • Cross Language Integration.
  • Self describing objects.

Read more : https://forums.codeguru.com/showthread.php?369619

like image 70
Pranay Rana Avatar answered Sep 19 '22 18:09

Pranay Rana


You are probably talking about CLR objects / POCO objects - Plain Old CLR objects.

Look here: POCO vs DTO

Look here about working with POCO entities - Working with POCO Entities

like image 27
manojlds Avatar answered Sep 17 '22 18:09

manojlds