Exemple #1
0
 /// <summary>
 /// Adds a box for the specified value 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 and use 'AddValues()' for multiple values instead.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="value">The value<see cref="T"/></param>
 public static void AddValue <T>(T value) where T : struct
 {
     BoxCache <T> .AddValue(value);
 }