PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Aspect­Infrastructure Namespace / IComparable­Aspect­Dependency­Object Interface / IComparable­Aspect­Dependency­Object Methods / IComparable­Aspect­Dependency­Object.​Compare­To Method

IComparableAspectDependencyObject.CompareTo Method

Determines the position of another object (considered the right member of the comparison) with respect to the current object (considered the left member of the comparison).

Namespace:  PostSharp.Sdk.AspectInfrastructure
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
bool CompareTo(
	MetadataDeclaration targetElement,
	IAspectDependencyObject right,
	out AspectDependencyPosition position
)

Parameters

targetElement
Type: PostSharp.Sdk.CodeModel.MetadataDeclaration
Element of code to which the dependency objects are applied.
right
Type: PostSharp.Sdk.AspectInfrastructure.IAspectDependencyObject
The other dependency object, considered at the right end of the relationship.
position
Type: AspectDependencyPosition
The position of right with respect to the current object.

Return Value

Type: Boolean
true in case of success, false if the dependency network cannot be resolved.
See Also