You cannot count lines of code using reflection. This information is not available using reflection. Using reflection, you can get the signature of class members, and you can get raw IL inside these methods. However, you cannot effectively translate this IL back into lines of code.
There are several ways to do this. You can (ab) use a tool like Reflector and programmatically call its assemblies to decompile assemblies in C # and perform line counting, or you can collect information from .pdb files to get line numbers. These program database files contain all this information. However, there is no way to read pdbs using reflection.
NDepend (the mentioned Gerrie tool) uses information from .pdb files to count the number of lines.
But since you already use the code coverage tool, why don't you add empty unit test projects for uncovered assemblies and add these test projects to your code coverage tool. Thus, you can see the overall coverage of the entire project. It would be cheaper than buying NDepend and much cheaper than actually writing a LoC counter.
source share