Top "Clr" questions

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

Interface with generic parameter vs Interface with generic methods

Let's say I have such interface and concrete implementation public interface IMyInterface<T> { T My(); } public class MyConcrete : …

c# .net clr
How to debug System.TypeLoadException errors in .NET?

I'm getting the following error on one of my referenced assemblies: Could not load type 'System.Func`2' from assembly …

c# clr
LINQ on the .NET 2.0 Runtime

Can a LINQ enabled app run on a machine that only has the .NET 2.0 runtime installed? In theory, LINQ is …

.net linq .net-3.5 .net-2.0 clr
Is there a way to get the string representation of HRESULT value using win API?

Is there a function in win API which can be used to extract the string representation of HRESULT value? The …

c++ windows winapi clr hresult
Should we always include a default constructor in the class?

I have been asked this question by a colleague that should we always include a default constructor in a class? …

c# .net clr default-constructor
Size of VARBINARY field in SQL Server 2005

I am trying to determine the size in bytes of the contents in a VARBINARY(MAX) field in SQL Server 2005, …

sql sql-server sql-server-2005 clr
C# 'is' operator performance

I have a program that requires fast performance. Within one of its inner loops, I need to test the type …

c# performance clr gettype
Unable to load SqlServerSpatial.dll

I am trying to use the SqlServer Spatial CLR types in a C# .Net project. I want to use SqlGeometry …

c# .net sql-server clr geospatial
Create empty C# event handlers automatically

It is not possible to fire an event in C# that has no handlers attached to it. So before each …

c# events delegates clr
How do I decide whether to use ATL, MFC, Win32 or CLR for a new C++ project?

I'm just starting my first C++ project. I'm using Visual Studio 2008. It's a single-form Windows application that accesses a couple …

c++ winapi mfc clr atl