PostSharpAPI ReferencePost­Sharp.​Patterns.​ThreadingExplicitly­Synchronized­AttributeApplies­To­Method­Only
Open sandboxFocus

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.

public bool AppliesToMethodOnly { get; }
Property Value
Type Description