PostSharpAPI ReferencePost­Sharp.​Patterns.​ThreadingExplicitly­Synchronized­AttributeExplicitly­Synchronized­Attribute
Open sandboxFocus

ExplicitlySynchronizedAttribute Constructor

ExplicitlySynchronizedAttribute()

Declaration
public ExplicitlySynchronizedAttribute()

ExplicitlySynchronizedAttribute(Boolean)

Initializes a new ExplicitlySynchronizedAttribute and specifies the synchronization strategy.

Declaration
public ExplicitlySynchronizedAttribute(bool appliesToMethodOnly)
Parameters
Type Name Description
Boolean appliesToMethodOnly

true to avoid adding any synchronization code to the target method, false to add synchronization code that allows the method to access other field or method of the target object.