This is the online documentation for PostSharp 5.0.
Download PDF or CHM. Go to v4.3 or v5.0

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: 5.0.33.0 (5.0.33.0)
Syntax
C#
public bool AppliesToMethodOnly { get; }

Property Value

Type: Boolean
See Also