Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

CompositionProxyTypeBuilder.BuildProxyType Method

Creates a proxy that delegates calls to an instance of the target object.

[Visual Basic]
Public Overrides Sub BuildProxyType() _
    Implements IProxyTypeBuilder.BuildProxyType
[C#]
public override Type BuildProxyType();

Return Value

The generated proxy class.

Implements

IProxyTypeBuilder.BuildProxyType

Remarks

Only interfaces can be proxied using composition, so the target must implement one or more interfaces.

Exceptions

Exception Type Condition
ArgumentException If the TargetType does not implement any interfaces.

See Also

CompositionProxyTypeBuilder Class | Spring.Proxy Namespace