IDictionary使用/聲明

因爲不常用,老師忘記怎麼申明.。這次記下來,哪天用了又忘了就來翻翻

主要代碼

  IDictionary<string, string> openWith = 
            new Dictionary<string, string>();

        // Add some elements to the dictionary. There are no 
        // duplicate keys, but some of the values are duplicates.
        openWith.Add("txt", "notepad.exe");
        openWith.Add("bmp", "paint.exe");
        openWith.Add("dib", "paint.exe");
        openWith.Add("rtf", "wordpad.exe");

微軟官方文檔:https://oapi.dingtalk.com/gettoken?appkey=key&appsecret=secret

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章