CountMethods( count = Regex reg = Regex( [] lines = ( i = ; i < lines.Length; i++++ info = .Format(
GetMethodNameAndLines([] input == Regex reg = Regex( ArrayList al = ( i = ; i < input.Length; i++= (mc.Count > al.Add(mc[ ( m = ; m < al.Count; m++.Format(,m+
正則與棧結合,統計方法行數名稱和個數
StackCount(= Hashtable ht = isLine = isEnd = methodName = flag = count = j = Regex regMethodName = Regex( Regex regLineStart = Regex( Regex regLeft = Regex( Regex regRight = Regex( [] lines = ( i = ; i < lines.Length; i++== (lines[i].ToString().Contains(= = = ++ ++ (!++ (stack.Count == = = (flag != = ++= ++++ (DictionaryEntry de
最後,附上運行效果圖