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
Afficher le fichier Open project: juanplopes/simple

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
InterfaceDynamicProxyImpl ( object proxyTarget, InvocationDelegate invocationHandler, bool strict, Type supportedTypes ) : System

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

Private Methods

Méthode Description
Invoke ( System message ) : System.Runtime.Remoting.Messaging.IMessage

Method Details

CanCastTo() public méthode

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
Résultat bool

CreateObjRef() public méthode

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

InterfaceDynamicProxyImpl() protected méthode

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
Résultat System