Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="type"></param>
        private static void InternalAddToCache(SBType type)
        {
            var cacheType = CacheList.Any(a => a.TypeId == type.TypeId);

            if (!cacheType)
            {
                CacheList.Add(type);
            }
        }
Esempio n. 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="type"></param>
 internal static void AddToCache(SBType type)
 {
     lock (CacheList)
         InternalAddToCache(type);
 }