Setting the default member of a class

  • Thread starter Thread starter nano2k
  • Start date Start date
N

nano2k

Hi
I'm searching for the way to set up the default property of my class.
I'm using v1.1 of the fmk.
For example, when I drag an object of an ArrayList type into the Watch
window, it immediately displays the value of Count property like this:

myArrayList {Count=1} System.Collections.ArrayList

It's frustrating that I didn't find out how to specify this custom
attribute to my class.

Thanks.
 
Thanks for reply.
It won't work.
I found out I need to modify 2 files in order to make the IDE to
understand what I want:

C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Packages
\Debugger\mcee_cs.dat
C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Packages
\Debugger\mcee_mc.dat

No other way?


Marc Gravell a scris:
 
nano2k said:
Thanks for reply.
It won't work.
I found out I need to modify 2 files in order to make the IDE to
understand what I want:

The IDE display the result of the ToString() method.
Override the ToString() and let it return the info you want to see in the
debugger.
 
No other way?

If you're using VS2005 and .NET Framework 2.0 you can use the
DebuggerDisplayAttribute instead.


Mattias
 
Sorry, doesn't work


Fabio a scris:
The IDE display the result of the ToString() method.
Override the ToString() and let it return the info you want to see in the
debugger.
 

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

Back
Top