Navigation :
BoxingCache
Name |
Value |
Assembly |
Catel.Core |
Namespace |
Catel.Data |
Available on |
.NET Framework 4.5, .NET Framework 4.6, Portable Class Libraries, Xamarin - Android, Xamarin - iOS |
public class BoxingCache<T> where T : struct
Caches boxed objects to minimize the memory footprint for boxed value types.
Fields
Methods
AddBoxedValue(object boxedValue)
Adds the value to the cache.
Parameters
Name |
Description |
boxedValue |
The value to add to the cache. |
AddUnboxedValue(T value)
Adds the value to the cache.
Parameters
Name |
Description |
value |
The value to add to the cache. |
GetBoxedValue(T value)
Gets the boxed value representing the specified value.
Parameters
Name |
Description |
value |
The value to box. |
Returns
The boxed value.
GetUnboxedValue(object boxedValue)
Gets the unboxed value representing the specified value.
Parameters
Name |
Description |
boxedValue |
The value to unbox. |
Returns
The unboxed value.
Have a question about Catel? Use StackOverflow with the Catel tag!
Discussion