Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008


all groups > dotnet clr > march 2008

how to use CLR classes in another CLR project? I get link error
Posted by Ronnie at 3/27/2008 8:19:00 PM
I have two CLR projects, now I want to use clr classes defined in one clr project in another clr project, but I got link error. anyone knows how to get this problem fixed any idea will be appreciated, thanks in advance. -Ronnie...more >>

Using Reflection Emit and Creating Instances
Posted by Joe McMenimen at 3/26/2008 9:06:02 AM
I am trying to use the Reflection Emit capability of the framework to dynamically inherit a base class. I want to call the base classes constructor with arguments passed into the new classes constructor. I think I am close, but get the following error trying to activate the new class. Sys...more >>

Should Executing Assembly By Name be this sloooow....
Posted by VictorG at 3/20/2008 3:44:27 PM
Hello, I'm wondering why ExecuteAssemblyByName takes aprox. 6 seconds to load a small assembly and display a Winform, when it only takes 1.8 seconds to load the same assembly in the default domain? CLR is already loaded in the process so using an appdomain s/b faster? Are there any know...more >>

Retrieving all properties by reflection
Posted by Edgile at 3/17/2008 2:44:02 AM
Hi, I would like to retrieve all properties of a type with the following conditions: - should include private properties, also from base classes - polymorphic properties should be there only once - static properties are not wanted Algoritm 1: Very simple: type.GetProperties(Public | NonP...more >>

LoadLibrary in-memory implementation for managed dlls
Posted by knattetjatte@googlemail.com at 3/12/2008 10:15:56 AM
I have a in-memory library loader (much like http://www.joachim-bauch.de/tutorials/load_dll_memory.html) and now I would like to make it support loading managed DLL (mixed-mode assemblies). Right now I am calling _CorDllMain from mscoree.dll in my loader with the base address of the DLL: ....more >>

is there some instruction level overhead to dynamicMethod?
Posted by psi at 3/11/2008 5:47:03 AM
i've tried to get a performance improvement by using dynamicMethod, but couldn't understand why it was so slow. so, as a test, i copied the il from a decompiled method, then made a dynamicMethod with the same il in the same program and found the dynamicMethod about 10x slower, obviously no hop...more >>

Array.CreateInstance failure
Posted by Edgile at 3/6/2008 8:58:02 AM
Hello, Bellow is a little except that creates a static array dynamically. However it creates a two dimensional one instead of a single dimensional. Why???? public static void Main(string[] args) { int[] intArray = new int[]{2,3}; Type type = intArray.GetType(); Array array = Array.Cr...more >>

DynamicMethod as an object
Posted by Amir Shitrit at 3/3/2008 2:04:01 PM
Hi. According to my understanding, the dynamic code generated using the DynamicMethod class is part of the DynamicMethod instance and is subject to garbage collection just like any other object, once no longer used. This must mean (correct me if I'm wrong) that the dynamically generated code ...more >>



ILGenerator.Emit crashes if using SerializationFieldInfo
Posted by Edgile at 3/3/2008 2:06:02 AM
Hello guys, ILGenerator.Emit(OpCode, FieldInfo) method throws ArgumentNullException if the input parameter is an instance of System.Runtime.Serialization.SerializationFieldInfo class. I believe this is a bug in the framework (I am running on .NET2.0). Could you please help me if I do some...more >>

Reflection and BaseTypes....
Posted by cwertman@gmail.com at 3/1/2008 5:15:55 PM
Ok, I am HOPING this is simple and I am missing the quite in front of my face answer I have not drunk enought caffine to answer. I have a method that accepts objects of an unknown type and origin. I am looking to "normailze" their storage in a 5 object database layer. 2 questions 1)How...more >>


DevelopmentNow Blog