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

Glimpse API

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

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

Syntax

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

Parameters

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

T
Instance type

Return Value

Wrapped instance.

Implements

IProxyFactory WrapClass T (T, IEnumerable IAlternateMethod , IEnumerable Object )
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