C# Class Simple.DynamicProxy.InterfaceDynamicProxyImpl

The implementation for a dynamic proxy. Should not be instantiated directly, but rather through the DynamicProxyFactory
Inheritance: System.Runtime.Remoting.Proxies.RealProxy, IDynamicProxy, IRemotingTypeInfo
ファイルを表示 Open project: juanplopes/simple

Public Methods

Method Description
CanCastTo ( System toType, object obj ) : bool

Checks whether the proxy representing the specified object type can be cast to the type represented by the IRemotingTypeInfo interface

CreateObjRef ( System type ) : ObjRef

CreateObjRef() isn't supported.

Protected Methods

Method Description
InterfaceDynamicProxyImpl ( object proxyTarget, InvocationDelegate invocationHandler, bool strict, Type supportedTypes ) : System

Creates a new proxy instance, with proxyTarget as the proxied object

Private Methods

Method Description
Invoke ( System message ) : System.Runtime.Remoting.Messaging.IMessage

Method Details

CanCastTo() public method

Checks whether the proxy representing the specified object type can be cast to the type represented by the IRemotingTypeInfo interface
public CanCastTo ( System toType, object obj ) : bool
toType System The Type we wish to cast to
obj object The object we wish to cast
return bool

CreateObjRef() public method

CreateObjRef() isn't supported.
CreateObjRef() for DynamicProxy isn't supported
public CreateObjRef ( System type ) : ObjRef
type System
return System.Runtime.Remoting.ObjRef

InterfaceDynamicProxyImpl() protected method

Creates a new proxy instance, with proxyTarget as the proxied object
protected InterfaceDynamicProxyImpl ( object proxyTarget, InvocationDelegate invocationHandler, bool strict, Type supportedTypes ) : System
proxyTarget object The object to proxy
invocationHandler InvocationDelegate
strict bool Should type support (for casts) be strict or loose
supportedTypes System.Type A List of supported types. Only used if strict is true. May be null
return System