C#學習網誌

GooglePrettify

2017年11月23日 星期四

Using Dictionary.TryGet

HashSet<long> portSet;
if (!ipMetaHashId2PortSetDic.TryGetValue(metaHashId4IP, out portSet))
{
portSet = new HashSet<long>();
ipMetaHashId2PortSetDic[metaHashId4IP] = portSet;
}
portSet.Add(port);
張貼者: Ryoko 於 晚上11:11
以電子郵件傳送這篇文章BlogThis!分享至 X分享至 Facebook分享到 Pinterest

沒有留言:

張貼留言

較新的文章 較舊的文章 首頁
訂閱: 張貼留言 (Atom)

關於我自己

Ryoko
檢視我的完整簡介

網誌存檔

  • ►  2019 (37)
    • ►  12月 (1)
    • ►  11月 (1)
    • ►  10月 (4)
    • ►  9月 (1)
    • ►  8月 (2)
    • ►  7月 (12)
    • ►  6月 (6)
    • ►  5月 (4)
    • ►  4月 (1)
    • ►  2月 (5)
  • ►  2018 (25)
    • ►  12月 (3)
    • ►  8月 (2)
    • ►  7月 (1)
    • ►  6月 (3)
    • ►  5月 (4)
    • ►  4月 (6)
    • ►  3月 (3)
    • ►  1月 (3)
  • ▼  2017 (52)
    • ►  12月 (2)
    • ▼  11月 (6)
      • How get yesterday and tomorrow datetime in c#
      • SQL Server Pagination
      • Comparing performance for different SQL Server pag...
      • Sql Server bulk update in stored procedure
      • Using Dictionary.TryGet
      • Visual Studio 2013 or 2015 EditorPackage did not l...
    • ►  9月 (1)
    • ►  6月 (2)
    • ►  5月 (2)
    • ►  4月 (4)
    • ►  3月 (20)
    • ►  2月 (14)
    • ►  1月 (1)
頂尖企業主題. 技術提供:Blogger.