Can Visual Studio 2010 do conditional breakpoints on a type

I would like to set a conditional breakpoint in Visual Studio based on what a type is assigned as.

var resident = user.Resident ? new ResidentUser() : new NonResidentUser();

I would like my breakpoint to hit when resident is of type NonResidentUser.


Simple, in this case you can do condition = user.Residen == false, but in other cases you could do residen.GetType() == typeof(NonResidentUser).

Need Your Help

SimpleXML problem, wrapping a list of items in one <tag>

php mysql simplexml

Problem: I want to get all locations from a database and encase them all in the &lt;loc&gt; tag, the following code puts each location in a &lt;loc&gt; tag, leading to several &lt;loc&gt; when I only

Wordpress ajax pagination

jquery wordpress pagination

I'm using this piece of code i found from a tutorial to enable Ajax pagination on my wordpress site. It all works find but i'd like to enhance it slightly.

How reliable is the UDP checksum algorithm?

udp checksum

It seems that UDP uses a fairly simple checksum algorithm and mostly it would produce a desired result and detect errors.