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

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
Namespace: Mediachase.Data.Provider.Internal
Assembly: Mediachase.DataProvider.dll
Version: 14.26.0
Syntax
public static class ObjectWrapper : Object

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>

An empty wrapper (IsEmpty is true and Value is the default.

Type Parameters
Name Description
T

The type of value to wrap.

Remarks

The same instance is used for all calls for the same type.