#眉標=VSTS2008實戰 #副標=Visutal Studio Team System2008實戰攻略(1) #大標=程式碼度量資訊 #作者=文/圖 歐宣修 ============= 程式1:Utility.cs public void ParseCommandLine(string[] arguments) //1 { if (arguments.Length == 0) //2 { this.ShowHelp(); throw new UtilityErrorException( "Arguments is illegal!"); } for (int i = 0; i < arguments.Length; i++) //3 { if (arguments[i].Equals("/?")) //4 { this.ShowHelp(); } else if (arguments[i].Equals("/input")) //5 { if (arguments.Length > 1 && File.Exists(arguments[i+1])) //6,7 { ……以下略 ================ ============= 註解 1. 必須是VSTS 2008 Development Edition或 Team Suite才擁有此功能。 2. 基礎度量(Base Measure)表示此度量資訊的收集是直接的,不需要額外的運算過程,而衍生度量(Derived Measure)則表示此度量定義,是由其他的基礎度量運算得來的。 ================