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>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Data.Provider.Internal
Assembly: Mediachase.DataProvider.dll
Version: 12.17.2Syntax
public class ObjectWrapper<T>
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 |