• <sub id="h4knl"><ol id="h4knl"></ol></sub>
    <sup id="h4knl"></sup>
      <sub id="h4knl"></sub>

      <sub id="h4knl"><ol id="h4knl"><em id="h4knl"></em></ol></sub><s id="h4knl"></s>
      1. <strong id="h4knl"></strong>

      2. asp.net中List的使用方法

        時間:2024-11-02 10:06:29 ASP 我要投稿
        • 相關推薦

        關于asp.net中List的使用方法

          不過寫的時候倒是按傳統C式語法結構寫的,.net中的一些方便的數據結構倒是沒有使用,偶然看到.net2.0支持泛型,用了一下,呵呵,不錯!我這個懶人可有福了!這就寫下來,做個筆記!

          程序代碼

          復制代碼 代碼如下:

          Console.WriteLine("List Test:");

          //聲明一個整型的List

          ListlsTest = new List();

          lsTest.Add(7);

          lsTest.Add(5);

          lsTest.Add(1);

          lsTest.Add(3);

          string strTest="";

          //list的排序

          lsTest.Sort();

          //list的遍歷

          foreach(int i in lsTest)

          strTest+=i.ToString()+" ";

          //格式化后輸出

          Console.Write(string.Format("Out:{0} nCount:{1}n",strTest,lsTest.Count));

          //讀取下一個按鍵,以便讓屏幕顯示數據

          Console.ReadKey();

          輸出結果如下

          程序代碼

          復制代碼 代碼如下:

          List Test:

          Out:1 3 5 7

          Count:4

        【asp.net中List的使用方法】相關文章:

        excel中if函數的使用方法10-24

        日語中敬語的使用方法08-04

        Word List 17詞匯02-16

        Excel中vlookup函數使用方法02-17

        excel中now函數的使用方法05-25

        詳解JavaScript中的splice()使用方法08-20

        vlookup函數在Excel中的使用方法09-21

        java中continue跳轉語句使用方法06-06

        Javascript中arguments對象的詳解和使用方法08-20

        php中static靜態變量的使用方法06-11

        国产高潮无套免费视频_久久九九兔免费精品6_99精品热6080YY久久_国产91久久久久久无码
      3. <sub id="h4knl"><ol id="h4knl"></ol></sub>
        <sup id="h4knl"></sup>
          <sub id="h4knl"></sub>

          <sub id="h4knl"><ol id="h4knl"><em id="h4knl"></em></ol></sub><s id="h4knl"></s>
          1. <strong id="h4knl"></strong>

          2. 中美日韩在线观看网 | 日本色道亚洲精品 | 在线看的国产网站 | 一区二区在线线欧美 | 伊人大杳蕉久久动漫 | 亚洲Av特级在线观看 |