WrapClass(T) Method (T, IEnumerable(IAlternateMethod))

Glimpse API

IProxyFactory WrapClass T  Method (T, IEnumerable IAlternateMethod ) Glimpse API Documentation
Wraps the class.

Namespace: Glimpse.Core.Extensibility
Assembly: Glimpse.Core (in Glimpse.Core.dll) Version: 1.0.1.0 (1.0.1)

Syntax

T WrapClass<T>(
	T instance,
	IEnumerable<IAlternateMethod> methodImplementations
)
where T : class
T WrapClass<T>(
	T instance,
	IEnumerable<IAlternateMethod> methodImplementations
)
where T : class

Parameters

instance
Type: T
The instance.
methodImplementations
Type: OnlineSystem.Collections.Generic IEnumerable IAlternateMethod 
The method implementations.
Type Parameters

T
Instance type

Return Value

Wrapped instance.
Remarks

Wrapping takes a target instance, generates a new type that extends the input types and injects the target object within the new instance.
See Also