Invokes the method if this is something that the LazyInitializer can handle without the underlying proxied object being instantiated.

Namespace: NHibernate.Proxy.Poco
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
public virtual Object Invoke(
	MethodInfo method,
	Object[] args,
	Object proxy
)
Visual Basic
Public Overridable Function Invoke ( _
	method As MethodInfo, _
	args As Object(), _
	proxy As Object _
) As Object
Visual C++
public:
virtual Object^ Invoke(
	MethodInfo^ method, 
	array<Object^>^ args, 
	Object^ proxy
)

Parameters

method
Type: System.Reflection..::..MethodInfo
The name of the method/property to Invoke.
args
Type: array<System..::..Object>[]()[][]
The arguments to pass the method/property.
proxy
Type: System..::..Object
The proxy object that the method is being invoked on.

Return Value

The result of the Invoke if the underlying proxied object is not needed. If the underlying proxied object is needed then it returns the result InvokeImplementation which indicates that the Proxy will need to forward to the real implementation.

See Also