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

MulticastAttributesComparer.CompareParameterAttributes Method

Determines if a given parameter 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 CompareParameterAttributes(
	MulticastAttributes acceptableAttributes,
	ParameterDeclaration candidateParameter
)

Parameters

acceptableAttributes
Type: MulticastAttributes
A value of MulticastAttributes specifying acceptable parameters.
candidateParameter
Type: PostSharp.Sdk.CodeModel.ParameterDeclaration
The candidate parameter.

Return Value

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