關於Dictionary的TryGetValue方法

這個方法時常會用到,並且頗有效。TryGetValue:獲取與指定的鍵相關聯的值測試 好比咱們讀取一個xml文件,讓後將其寫入到Dictionary中存儲:spa private static Dictionary<string, string> SqlKeyValues = null; /// <summary> /// 必要用戶字段及別名 ///
相關文章
相關標籤/搜索