DynamicAdvisingServices.QueryObject Method |
Gets the principal object of an advice.
Namespace: PostSharp.Patterns.DynamicAdvising
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 2023.0.3.0 (2023.0.3.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.