DynamicAdvisingServices.QueryObject Method |
Gets the principal object of an advice.
Namespace: PostSharp.Patterns.DynamicAdvising
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.5.21.0 (6.5.21.0)
C#
public static Object QueryObject( Object obj )
Parameters
- obj
- Type: System.Object
An object or a dynamic advice.
Return Value
Type: ObjectThe AdvisedObject is obj is a dynamic advice, otherwise obj itself.