UseWrapper Method
Definition
- Namespace
- Cuemon.Extensions
- Assemblies
- Cuemon.Extensions.Core.dll
UseWrapper<T>(T, Action<IDictionary<string, object>>)
Wrap and extend an existing object of T with additional data.
public static IWrapper<T> UseWrapper<T>(this T instance, Action<IDictionary<string, object>> extender = null)
Parameters
instanceTThe instance to wrap and extend.
extenderAction<IDictionary<string, object>>The delegate that provides an easy way of supplying additional data to an object.
Returns
- IWrapper<T>
An implementation of IWrapper<T> encapsulating the specified
instance.
Type Parameters
TThe 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.
public static IWrapper<T> UseWrapper<T>(this T instance, MemberInfo memberReference, Action<IDictionary<string, object>> extender = null)
Parameters
instanceTThe instance to wrap and extend.
memberReferenceMemberInfoThe optional member reference to assign MemberReference.
extenderAction<IDictionary<string, object>>The delegate that provides an easy way of supplying additional data to an object.
Returns
- IWrapper<T>
An implementation of IWrapper<T> encapsulating the specified
instance.
Type Parameters
TThe type of the object to extend.