clr
Why does attempted Union structure cause System.ExecutionEngineException?
I tried to experiment with the ability of .NET to support unions using the code below, but it causes a System.ExecutionengineException in .NET 2.0 and FatalExecutionEngineError in .NET 4.0 with the me[详细]
2023-03-12 08:16 分类:问答Check if event has any listeners?
Is i开发者_开发知识库t possible to detect if event has any listeners? (I need to dispose my event provider object, if nobody needs it)Assume the class is in a 3rd party library and it can\'t be modifi[详细]
2023-03-12 04:19 分类:问答Curiosity: Converting a C# struct into an object still copies it
This question is more out of curiosity than a real problem. Consider the following code (C# 4.0, if it matters):[详细]
2023-03-12 03:59 分类:问答What governs the version of the .NET CLR that gets loaded by CorBindToRuntimeEx?
I\'m using the following unmanaged C++ code to instantiate the CLR from an Excel 2003 add-in (a COM shim for a .NET add-in):[详细]
2023-03-11 23:01 分类:问答How GC deal with this problem on .net platform?
I have this code classObject var1 = new classObject(); classObject var2 = var1;开发者_C百科 Now, I wrote this:[详细]
2023-03-11 07:11 分类:问答Singleton COM object required
Is it po开发者_JAVA百科ssible to create the single instance of COM object, and be sure all subsequent calls from any client will be made to this single instance only?Note that you will have to to make[详细]
2023-03-10 22:51 分类:问答How to get AppDomain by name?
Is it possible to get reference to an existing AppDomain (created not开发者_如何学运维 by mine code) by it\'s \"friendly name\" or id? Or in any other way?List AppDomains in Process[详细]
2023-03-10 22:07 分类:问答How to make sure all instances of my COM object are created in the same app domain?
How to make sure all instances o开发者_JAVA百科f my COM object are created in the same app domain? (I have server and client in the same process)[详细]
2023-03-10 18:01 分类:问答SyncHashtable this[Object key] does not use locking
I went through the implementation of SyncHashtable in defined in .Net framework BCL. This class provides synchronized access to multiple readers and writers.[详细]
2023-03-10 17:27 分类:问答Can't install a signed component in the GAC?
I try to install a strongly-signed component in the GAC by using drag-drop to the C:\\WINDOWS\\assembly directory but nothing happens[详细]
2023-03-10 14:08 分类:问答