• Performance
  • API Documentation
  • Source Code
Show / Hide Table of Contents
  • InSync
    • AsyncSynchronized
    • AsyncSynchronized<T>
    • GuardedValue<T>
    • IAsyncSynchronized<T>
    • IBareAsyncLock
    • IBareAsyncLock<T>
    • IBareLock
    • IBareLock<T>
    • ISynchronized<T>
    • LockException
    • MultiSync
    • ReaderSynchronized<TRead>
    • ReaderWriterSynchronized<T>
    • ReaderWriterSynchronized<TWrite, TRead>
    • ReaderWriterSynchronizedFactory
    • Synchronized
    • Synchronized<T>
    • TimingMethod
    • UnlockException
    • UpgradeableReaderSynchronized<TRead>
    • ValueContainer<T>

Class Synchronized

Provides static methods for creating Synchronized<T> without explicitly specifying the type of the protected object.

Inheritance
System.Object
Synchronized
Namespace: InSync
Assembly: InSync.dll
Syntax
public static class Synchronized : object

Methods

Create<T>(T)

Creates a Synchronized<T> with the object to protect as the lock.

Declaration
public static Synchronized<T> Create<T>(T value)
    where T : class
Parameters
Type Name Description
T value

The object to protect and the lock

Returns
Type Description
Synchronized<T>

A new Synchronized<T>

Type Parameters
Name Description
T

The type of the protected object.

Create<T>(Object, T)

Creates a new Synchronized<T> with the specified lock and the object to protect.

Declaration
public static Synchronized<T> Create<T>(object padLock, T value)
    where T : class
Parameters
Type Name Description
System.Object padLock

The lock for synchronization

T value

The object to protect.

Returns
Type Description
Synchronized<T>
Type Parameters
Name Description
T

The type of the protected object.

In This Article
Back to top Generated by DocFX