Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Class ObjectWrapper<T>

This type/member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Generic wrapper class. Can be used when inserting an item into cache, allowing to insert null items. Null items can be used for no-hit caching, and the recommendation is then to reuse the same instance for all no-hits to avoid instantiating many objects.

Inheritance
System.Object
ObjectWrapper<T>
Namespace: Mediachase.Data.Provider.Internal
Assembly: Mediachase.DataProvider.dll
Version: 14.26.0
Syntax
public class ObjectWrapper<T> : Object
Type Parameters
Name Description
T

Properties

IsEmpty

Gets a value indicating this instance wraps a value or not.

Declaration
public bool IsEmpty { get; }
Property Value
Type Description
System.Boolean

Value

Gets the wrapped value.

Declaration
public T Value { get; }
Property Value
Type Description
T