boolean variable naming rule

Nov 5, 2012 at 2:29 PM

A boolean variable must have a prefix is, such as: bool isFinished; How can I write a custom rule for it?

I look for something like:

if (returntype == bool && elementType != method) checkstartwith'is';

But I don't know what exactly what the code is

Nov 12, 2012 at 2:51 AM

Any one please help me

Developer
Nov 12, 2012 at 3:00 AM

I presume it was you who posted the Stack Overflow question: http://stackoverflow.com/questions/13229961/using-stylecop-to-set-boolean-variable-rule

Didn't this help?