色尼玛亚洲综合影院,亚洲3atv精品一区二区三区,麻豆freexxxx性91精品,欧美在线91

Visual Studio 2010 RC 幾個很酷的新功能

我一直在使用Visual Studio 2010RC版本。它有很多讓人欣喜的東西。下面將其列舉出來:

Sequence Diagram Generation

    我覺得這是一個救星。我不知道你是怎么樣的,但作為開發人員,我在完成設計之后,就想潛心投入代碼中。通常在開始編碼之前,有時候我想要看序列圖。現在,有了Visual Studio 2010序列圖生成器,我可以簡單地編寫代碼,然后生成。這不僅為您節省時間,而且讓你更好地去理解可導致代碼的復雜的一些分支。

    以下是我在這篇文章中要使用的代碼:

 1 class Animal {
 2        public virtual void Description() { Console.WriteLine("Lives on earth"); }
 3     }
 4 
 5     class Bird : Animal {
 6         public override void Description() 
 7     { Console.WriteLine("have feathers and a beak"); }
 8     }
 9 
10     class Lion : Animal {
11         public override void Description()
12         {
13             Console.WriteLine("roars and have large teeth");
14         }
15     }
16 
17     class Park
18     {
19         static void Main(string[] args)
20         {
21             List<Animal> animalsInPark = new List<Animal>();
22             ShowDescriptions(animalsInPark);
23         }
24 
25         static void ShowDescriptions(List<Animal> animals)
26         {
27             animals.ForEach(animal => animal.Description());
28         }
29     }

NET技術Visual Studio 2010 RC 幾個很酷的新功能,轉載需保留來源!

鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。

主站蜘蛛池模板: 沈丘县| 兰坪| 屯门区| 深泽县| 江油市| 宜君县| 铜梁县| 通海县| 东山县| 柞水县| 大安市| 肃宁县| 汕尾市| 建湖县| 永春县| 商城县| 永登县| 五寨县| 长垣县| 子长县| 米脂县| 镇沅| 宜良县| 新津县| 姜堰市| 南阳市| 池州市| 凌海市| 顺义区| 米易县| 房产| 油尖旺区| 石城县| 永兴县| 互助| 平乡县| 晋城| 射阳县| 深州市| 塘沽区| 新竹县|