Quantcast
Channel: Dick Wenning's Activities
Viewing all articles
Browse latest Browse all 1245

How to get number of custom lines of code in a class

$
0
0

Hi guys,

Can anyone please guide me how can I count the number of lines of custom code written in any method in a class.

For example; In SysMailer class I added few lines of code in method quickSend which is at CUS layer (this could be at any layer). I have managed to get the total number of lines of code in each method by traversing it through treeNode and then by calling fieldNode.AOTgetExecuatableLineCount() method. However, now I just want to count custom lines of code.

I do have an idea of the sysCompare class which is used behind compare tool in AX to compare code on different layers. It highlighted the difference in red color. However, it does not tell me the number of lines of custom code.

Any idea would highly be appreciated.


Viewing all articles
Browse latest Browse all 1245

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>