PostSharp.ILAPI ReferencePost­Sharp.​Patterns.​ThreadingReader­Writer­Synchronized­Attribute
Open sandboxFocus

ReaderWriterSynchronizedAttribute Class

Custom attribute that, when applied on a class, applies the ReaderWriterSynchronizedThreadingModel model to this class and all derived class. Members of this class must then be annotated with attributes specifying the required access level (ReaderAttribute, WriterAttribute, YielderAttribute or UpgradeableReaderAttribute), otherwise build-time and run-time errors are emitted.

Namespace: PostSharp.Patterns.Threading
Assembly: PostSharp.Patterns.Threading.dll
Syntax
[Metric("UsedFeatures", "PostSharp.Patterns.Threading.ReaderWriterSynchronized")]
[Serializer]
public sealed class ReaderWriterSynchronizedAttribute : ThreadAwareAttribute, ITypeLevelAspect, ITypeLevelAspectBuildSemantics, IAspectBuildSemantics, IValidableAnnotation, ICloneAwareAspect, IInstanceScopedAspect, IAspectProvider, IService, IAdviceProvider, IAspect, IThreadAware, IQueryInterface

Constructors

Name Description
ReaderWriterSynchronizedAttribute() PostSharp.Patterns.Threading.ReaderWriterSynchronizedAttribute
ReaderWriterSynchronizedAttribute(PortableFormatterConstructorContext)