Questions tagged [clr]
The Common Language Runtime (CLR) is the virtual machine component of Microsoft's .NET framework and is responsible for managing the execution of .NET programs.
25 questions
6 votes
1 answer
3k views
How to separate "unmanaged" and "managed" code in my C++/CLI project
I am developing a project using C++/CLI and WinForms. It is a geometry project, which is why I have to use C++/CLI, because of the C++ geometry library CGAL. I chose to use WinForms for the UI because ...
0 votes
0 answers
146 views
.Net - "Thread is blocked/waiting" meaning for I/O bound operation
Caller waiting for method to return back and till it is not returning, we can say thread is waiting, right ? However, this behaviour is because that inner method is waiting for some other operation or ...
3 votes
2 answers
1k views
What is the point of the Common Language Runtime (CLR)?
My understanding is that part of the point of the JVM was that the code could "run anywhere", but CLR code was designed to run only on Windows: so why have a virtual machine? I know that the CLR ...
-1 votes
2 answers
969 views
How does the Common Language Runtime improve performance? [duplicate]
I read on the wikipedia article for Common Language Runtime that one of the benefits that the runtime provides is "Performance improvements". Executing managed code (Or bytecode) must surely always ...
15 votes
4 answers
14k views
How are virtual methods slower in C#?
I read that virtual calls make the code slower than calling non-virtual ones in C#. However, the IL instruction for both are the same callvirt except in cases where base.somemethod() is called. So how ...
6 votes
4 answers
8k views
Is it possible to implement an infinite IEnumerable without using yield with only C# code?
Motivation The main idea is to explore and understand the limits of how far one can go with the basic LINQ primitives (Select, SelectMany, Concat, etc.). These primitives can all be considered ...
7 votes
1 answer
244 views
.NET BCL Change Analysis - Uses Beyond Sating Curiosity
This is part of a series of questions which focuses on the Abstraction Project, which aims to abstract the concepts used in language design in the form of a framework. There is a sister project to ...
4 votes
3 answers
2k views
Appropriate use of SQL CLR
We have some back end processes that runs* on our sql server (SQL Server), they involve processing claims. This requires both data manipulation (biz logic) and data read/write to tables. The biz ...