Show / Hide Table of Contents

Interface IInternCache<T>

Interface for caches used to intern reused values of the specified type.

Inherited Members
IMemoizationCache.DebugView
IMemoizationCache.Count
IClearable.Clear()
Namespace: System.Memory
Assembly: Nuqleon.Memory.dll
Syntax
public interface IInternCache<T> : IMemoizationCache, IClearable, IDisposable
Type Parameters
Name Description
T

Type of the values to intern.

Methods

Intern(T)

Interns the specified value, returning an equivalent value.

Declaration
T Intern(T value)
Parameters
Type Name Description
T value

The value to intern.

Returns
Type Description
T

The original value if no interned equivalent value was found; otherwise, an equivalent value.

In This Article
Back to top Generated by DocFX