Checking the number of elseif statements in a loop

Hi All
Can any 1 help me. I want to write a rule to check the number of elseif conditions in a if statement.
Can any one write to me if it possible to write this type of rule and if it is possible then how to go ahead with this.

Thanks
Biswa

[257 byte] By [Biswa] at [2008-2-20]
# 1

FxCop can (currently) only scan compiled assemblies (DLLs and EXEs). All source-level branching commands (if, elseif, etc) turn into general-purpose CIL commands (brfalse, blt, etc)... the same CIL instructions can be generated a variety of ways, so you can never really be sure what was originally there.

-Ryan / Kardax

RyanLamansky at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Visual Studio Code Analysis and Code Metrics...

Visual Studio Team System

Site Classified