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).