all groups > dotnet clr > november 2007 > threads for november 22 - 28, 2007
Filter by week: 1 2 3 4 5
Cant call Marshal.PtrToStructure from a DynamicMethod
Posted by john conwell at 11/27/2007 6:12:01 PM
I'm trying to create a DynamicMethod to handle custom marshaling from a
pointer in memory to managed types. I'm trying to use a DynamicMethod so I
can template the code for all the custom marshaling and dont have to maintain
it.
My problem is I cant call Marshal.PtrToStructure in a Dynamic... more >>
Generic Collections
Posted by Scott M. at 11/27/2007 2:33:23 PM
Given that in .NET 1.x, we could make a strongly-typed collection by
creating a class that inherited from CollectionBase and implementing custom
Add, Remove, and Item members that only work for a given type and that now,
with Generics we don't need to do that extra work, does it mean that to
... more >>
How to get base data type for enum via reflection
Posted by john conwell at 11/27/2007 11:03:01 AM
in .Net you can make your Enum inherit from sbyte, byte, short, ushort, int,
uint, long, ulong (default is int).
What I'm trying to do is determine what is the underlying type of a enum at
runtime via reflection. But I cant figure out how. If I get the Type of my
custom emun, it's base ... more >>
Generics Question
Posted by Scott M. at 11/23/2007 12:28:44 PM
1. Although I get the relative simplicity of Generics over using interfaces
is it true that I *could* do what Generics offers with interfaces?
... more >>
Is it possbile to enumerate Methods by Event?
Posted by athos.jingle@gmail.com at 11/23/2007 10:29:14 AM
To attach a method to an event, we can use EventInfo.AddEventHandler.
After attached, given an event's name, is it possible to retrieve all
methods attached to it?
Thank you.... more >>
.NET Compact Framework System.Windows.Forms.UserControl is leaking memory
Posted by Armin Sczuka at 11/22/2007 11:07:45 AM
Hello,
I figured out that all objects based on System.Windows.Forms.UserControl are
never disposed by the Compact Framework GC. This problem occours only under
Windows CE not with Win32/ Win64.
Is this a known issue?
Is there any fix for it?
How about the .NET Compact Framework 3.5? ... more >>
|