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

Read a whole XML line and save it into an array? JDOM

java xml jdom

I have a very simple question, yet i cant solve it, I hope you can help me.

Single quotes in SQL in a Query Object inside of cfscript in a ColdFusion component

coldfusion hql cfc

A bit of a confusing title, but I'll try to be clear here. When using the query object inside of <cfscript> and you have some sql in the form:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.