Validate if a single method can be intercepted by proxy.

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

Syntax

C#
bool IsProxeable(
	MethodInfo method
)
Visual Basic
Function IsProxeable ( _
	method As MethodInfo _
) As Boolean
Visual C++
bool IsProxeable(
	MethodInfo^ method
)

Parameters

method
Type: System.Reflection..::..MethodInfo
The given method to check.

Return Value

trueTruetruetrue (True in Visual Basic) if the method can be intercepted by proxy. falseFalsefalsefalse (False in Visual Basic) otherwise.

Remarks

This method can be used internally by the ValidateType(Type) and is used by PocoEntityTuplizer to log errors when a property accessor can't be intercepted by proxy. The validation of property accessors is fairly enough if you ecampsulate each property.

See Also