PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Extensibility.​Tasks Namespace / Multicast­Attributes­Comparer Class / Multicast­Attributes­Comparer Methods / Multicast­Attributes­Comparer.​Compare­Method­Attributes Method

MulticastAttributesComparer.CompareMethodAttributes Method

Determines if a given method matches a given value of MulticastAttributes.

Namespace:  PostSharp.Sdk.Extensibility.Tasks
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
public MulticastMatch CompareMethodAttributes(
	MulticastAttributes acceptableAttributes,
	MethodDefDeclaration candidateMethod
)

Parameters

acceptableAttributes
Type: MulticastAttributes
A value of MulticastAttributes specifying acceptable methods.
candidateMethod
Type: PostSharp.Sdk.CodeModel.MethodDefDeclaration
The candidate method.

Return Value

Type: MulticastMatch
true if candidateMethod is acceptable with respect to acceptableAttributes, otherwise false.
See Also