Exemplo n.º 1
0
 /// <summary>
 /// Gets a cached box for the specified value if one is cached, otherwise it returns a new box for the value.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="value">The value<see cref="T"/></param>
 /// <returns>The <see cref="object"/></returns>
 public static object GetBox <T>(T value)
 {
     return(BoxCache <T> .GetBox(value));
 }