Class ObjectWrapper
This type/member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Factory class for ObjectWrapper<T>.
Inheritance
System.Object
ObjectWrapper
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: 13.30.0Syntax
public static class ObjectWrapper
Methods
Create<T>(T)
Creates a wrapper for the specified value.
Declaration
public static ObjectWrapper<T> Create<T>(T value)
Parameters
Type | Name | Description |
---|---|---|
T | value | The value to wrap. |
Returns
Type | Description |
---|---|
ObjectWrapper<T> | A wrapper containing the value. |
Type Parameters
Name | Description |
---|---|
T | The type of value to wrap. |
Empty<T>()
Gets the empty wrapper.
Declaration
public static ObjectWrapper<T> Empty<T>()
Returns
Type | Description |
---|---|
ObjectWrapper<T> |
Type Parameters
Name | Description |
---|---|
T | The type of value to wrap. |
Remarks
The same instance is used for all calls for the same type.