PostSharpAPI ReferencePost­Sharp.​Patterns.​Dynamic­AdvisingDynamic­Advising­ServicesQuery­Object
Open sandboxFocus

DynamicAdvisingServices.QueryObject Method

QueryObject(Object)

Gets the principal object of an advice.

Declaration
public static object QueryObject(object obj)
Parameters
Type Name Description
Object obj

An object or a dynamic advice.

Returns
Type Description
Object

The AdvisedObject is obj is a dynamic advice, otherwise obj itself.