PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Aspect­Infrastructure Namespace / Null­Transformation­Instance Class / Null­Transformation­Instance Methods / Null­Transformation­Instance.​Has­Effect Method

NullTransformationInstance.HasEffect Method

Determines whether the current object has a given effect.

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 bool HasEffect(
	string effect
)

Parameters

effect
Type: System.String
A case-sensitive string uniquely identifying the effect. See StandardEffects.

Return Value

Type: Boolean
true if the current object has the current effect, otherwise false.

Implements

IAspectDependencyObject.HasEffect(String)
See Also