private static char[] ArrayProvider(ObjectCacheBase <char[]> cache) { return(new char[((CharArrayCache)cache)._arraySize]); }
private static ArraySlice ArrayProvider(ObjectCacheBase <ArraySlice> cache) { var asc = (ArraySliceCache)cache; return(new ArraySlice(new byte[asc._arraySize], asc)); }
private static byte[] ArrayProvider(ObjectCacheBase <byte[]> cache) { return(new byte[((ByteArrayCache)cache)._arraySize]); }