AspectDependencyResolver.Compare Method |
Determines the ordering of two dependency objects.
Namespace: PostSharp.Sdk.AspectInfrastructure
Assembly: PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public static bool Compare( MetadataDeclaration targetElement, IAspectDependencyObject left, IAspectDependencyObject right, out AspectDependencyPosition result )
Parameters
- targetElement
- Type: PostSharp.Sdk.CodeModel.MetadataDeclaration
Element of code to which the dependency objects apply, - left
- Type: PostSharp.Sdk.AspectInfrastructure.IAspectDependencyObject
A dependency object. - right
- Type: PostSharp.Sdk.AspectInfrastructure.IAspectDependencyObject
A dependency object. - result
- Type: AspectDependencyPosition
The relative position of right with respect to left.
Return Value
Type: Booleantrue in case of success, otherwise false.