how to step through the system code

C

colin

Hi,
how can I step through the system code like the property editor?

Im having trouble trying to find how to use the property editor to do
exactly
what I want, particularly now im finding
MyProperty:propertDescriptor
{
GetValue(object component)
}

is being passed null for the component yet my code is definatly not got any
null instances.

i can get it to work for the property editor main form or the pop up up
colection editor
but there seems no way i can get both to work at the same time.

I get a long stack trace inside my visual c# (express),
consisitng of many propertygrid and related functions

and although I can find code for those functions in the Lutz reflector,
its hard to wade through each call on the stack and find it in the
reflector.

I can copy parts of the system code from the reflector
into my project just to see whats going on ok,
but when I disamlble large chunks, it displays it
ok but when I try to copy a significant amount to the scrap
buffer it just seems to hang for ever.

is there any debugable source of the system .net code or anyway of doing
this with the express version ?

many thanks
Colin =^.^=
 
C

colin

aha i found the Lutz reflector has an export function,
I tried to export the property grid, but it needed acces to other things
wich were to protected, exporting those lead to an ever increasing spiral of
necesseary things to export
till eventualy i ended up exporting virtualy everything in all the system
libraries.

but unfortunatly the compile error list is long enough to strect to the moon
and back !

I also found details for debuging system source
http://blogs.msdn.com/sburke/archiv...tudio-to-debug-net-framework-source-code.aspx
but sadly this doesnt apply to the express version :(

Colin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top