PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Aspect­Infrastructure Namespace / Aspect­Dependency­Resolver Class / Aspect­Dependency­Resolver Methods / Aspect­Dependency­Resolver.​Compare Method

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)
Syntax
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: Boolean
true in case of success, otherwise false.
See Also