Esempio n. 1
0
 public static int Of(IMethodDefinition method, PdbReader pdb, IMetadataHost host)
 {
     if (method.HasOperations())
         return method.CalculateCyclomaticComplexity(pdb, host);
     else
         return 0;
 }
Esempio n. 2
0
 public static int Of(IMethodDefinition method, PdbReader pdb, IMetadataHost host)
 {
     if (method.HasOperations())
     {
         return(method.CalculateCyclomaticComplexity(pdb, host));
     }
     else
     {
         return(0);
     }
 }