public static string get_val_by_key(this Dictionary<string, string> dictionary, string key) => dictionary == null || !dictionary.ContainsKey(key) ? "" : dictionary[key];
該封裝自動判斷dic對象是否爲null,和包含特定的key,默認放回爲空;否則返回對應的值。
public static string get_val_by_key(this Dictionary<string, string> dictionary, string key) => dictionary == null || !dictionary.ContainsKey(key) ? "" : dictionary[key];
該封裝自動判斷dic對象是否爲null,和包含特定的key,默認放回爲空;否則返回對應的值。
https://github.com/Molunerfinn/PicGo https://github.com/Molunerfinn/PicGo