예제 #1
0
파일: BoxCache.cs 프로젝트: zanderphh/wif
 /// <summary>
 /// The AddValues
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="values">The <see cref="T[]" /></param>
 internal static void AddValues <T>(params T[] values) where T : struct
 {
     BoxCache <T> .AddValues(values);
 }
예제 #2
0
파일: BoxCache.cs 프로젝트: zanderphh/wif
 /// <summary>
 /// Adds boxes for the specified values into the cache. Note that the cache uses a copy-on-write mechanism to ensure
 ///     thread safety and
 ///     ensure fastest possible lookup time so use this sparingly after application startup.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="values">The values<see cref="IEnumerable{T}"/></param>
 public static void AddValues <T>(IEnumerable <T> values) where T : struct, IComparable <T>
 {
     BoxCache <T> .AddValues(values);
 }