Exemple #1
0
 /// <summary>
 /// Gets a cached box for the specified value. A box is created and added to the cache if it doesn't already exist.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="value">The value<see cref="T"/></param>
 /// <returns>The <see cref="object"/></returns>
 public static object GetOrAddBox <T>(T value)
 {
     return(BoxCache <T> .GetOrAddBox(value));
 }