Class WrapperExtensions
Extension methods for the IWrapper<T>.
Inheritance
System.Object
WrapperExtensions
Namespace: Cuemon
Assembly: Cuemon.Core.dll
Syntax
public static class WrapperExtensions
Methods
| Improve this DocUseWrapper<T>(T, Action<IDictionary<String, Object>>)
Wrap and extend an existing object of T
with additional data.
Declaration
public static IWrapper<T> UseWrapper<T>(this T instance, Action<IDictionary<string, object>> extender = null)
Parameters
Type | Name | Description |
---|---|---|
T | instance | The instance to wrap and extend. |
System.Action<System.Collections.Generic.IDictionary<System.String, System.Object>> | extender | The delegate that provides an easy way of supplying additional data to an object. |
Returns
Type | Description |
---|---|
IWrapper<T> | An implementation of IWrapper<T> encapsulating the specified |
Type Parameters
Name | Description |
---|---|
T | The type of the object to extend. |
UseWrapper<T>(T, MemberInfo, Action<IDictionary<String, Object>>)
Wrap and extend an existing object of T
with additional data.
Declaration
public static IWrapper<T> UseWrapper<T>(this T instance, MemberInfo memberReference, Action<IDictionary<string, object>> extender = null)
Parameters
Type | Name | Description |
---|---|---|
T | instance | The instance to wrap and extend. |
System.Reflection.MemberInfo | memberReference | The optional member reference to assign MemberReference. |
System.Action<System.Collections.Generic.IDictionary<System.String, System.Object>> | extender | The delegate that provides an easy way of supplying additional data to an object. |
Returns
Type | Description |
---|---|
IWrapper<T> | An implementation of IWrapper<T> encapsulating the specified |
Type Parameters
Name | Description |
---|---|
T | The type of the object to extend. |