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

posted @ 2019-04-29 14:28  君宁天下  阅读(399)  评论(0编辑  收藏  举报
野生程序员真的是太难了,一刻也不敢停止学习