コード例 #1
0
 /// <summary>
 /// Resets the singleton class and flushes all the cached
 /// values so they will be re-cached the next time they are requested
 /// </summary>
 public static void Reset()
 {
     lock (_syncObj)
     {
         _uniqueInstance = null;
     }
 }
コード例 #2
0
ファイル: TLDRulesCache.cs プロジェクト: antiufo/Shaman.Tld
 /// <summary>
 /// Resets the singleton class and flushes all the cached 
 /// values so they will be re-cached the next time they are requested
 /// </summary>
 public static void Reset()
 {
     lock (_syncObj)
     {
         _uniqueInstance = null;
     }
 }