PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Threading Namespace / Explicitly­Synchronized­Attribute Class / Explicitly­Synchronized­Attribute Properties / Explicitly­Synchronized­Attribute.​Applies­To­Method­Only Property

ExplicitlySynchronizedAttribute.AppliesToMethodOnly Property

Determines the synchronization strategy. When AppliesToMethodOnly is true, no synchronization code will be added to the target method. When it is set to false to add synchronization code will be added to allow the method to access other field or method of the target object. The default value is false.

Namespace:  PostSharp.Patterns.Threading
Assembly:  PostSharp.Patterns.Threading (in PostSharp.Patterns.Threading.dll) Version: 2023.0.3.0 (2023.0.3.0)
public bool AppliesToMethodOnly { get; }

Property Value

Type: Boolean
See Also