Top "Clr" questions

The Common Language Runtime (CLR) is a core component of Microsoft's .NET initiative.

How do I detect at runtime that .NET version 4.5 is currently running your code?

I installed .NET 4.5 Developer preview from http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=27541, which 'replaces' .…

.net clr version .net-4.5
C# casting to nullable type?

Beyond the regular boring difference between Cast and As if i know that apple is a Fruit so I can …

c# .net-4.0 casting clr
Why Large Object Heap and why do we care?

I have read about Generations and Large object heap. But I still fail to understand what is the significance (or …

.net garbage-collection clr large-object-heap
Asynchronous iterator Task<IEnumerable<T>>

I’m trying to implement an asynchronous function that returns an iterator. The idea is the following: private async Task&…

c# .net asynchronous iterator clr
Stack capacity in C#

Could someone tell me what the stack capacity is in C#. I am trying to form a 3D mesh closed …

c# .net clr stack
explicitly cast generic type parameters to any interface

In Generics FAQ: Best Practices says : The compiler will let you explicitly cast generic type parameters to any interface, but …

c# .net generics clr
CLR and CLI - What is the difference?

I want to know what exactly is the difference between CLR & CLI? From whatever I have read so far, …

.net clr command-line-interface
.NET vs ASP.NET vs CLR vs ASP

Although I know the terms I used to forget the differences sometimes...So just to maintain a place for reference...…

.net asp.net asp-classic clr
Strange casting behaviour. Cannot cast object (int) to long

I have the following code: int intNumber1 = 100; object intNumber2 = 100; bool areNumberOfTheSameType = intNumber1.GetType() == intNumber2.GetType(); // TRUE bool areEqual = intNumber1.Equals(…

c# .net clr
sizeof(int) on x64?

When I do sizeof(int) in my C#.NET project I get a return value of 4. I set the project …

c# 64-bit clr sizeof