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

MulticastAttributesComparer.ComparePropertyAttributes Method

Determines if a given property 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 ComparePropertyAttributes(
	MulticastAttributes acceptableAttributes,
	PropertyDeclaration candidateProperty
)

Parameters

acceptableAttributes
Type: MulticastAttributes
A value of MulticastAttributes specifying acceptable properties.
candidateProperty
Type: PostSharp.Sdk.CodeModel.PropertyDeclaration
The candidate property.

Return Value

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