ReaderWriterLocker.InLock(TValue) Method (LockTypeEnum, Func(TValue))

Tungsten Suite

ReaderWriterLockerInLockTValue Method (LockTypeEnum, FuncTValue)

Executes a function from within a ReaderWriterLockSlim

Namespace:  W.Threading.Lockers
Assembly:  Tungsten.Threading.Lockers (in Tungsten.Threading.Lockers.dll) Version: 2.0.1
Syntax
C#
public TValue InLock<TValue>(
	LockTypeEnum lockType,
	Func<TValue> func
)

Parameters

lockType
Type: W.Threading.LockersLockTypeEnum

[Missing <param name="lockType"/> documentation for "M:W.Threading.Lockers.ReaderWriterLocker.InLock``1(W.Threading.Lockers.LockTypeEnum,System.Func{``0})"]

func
Type: SystemFuncTValue
The function to run

Type Parameters

TValue
The type of return value

Return Value

Type: TValue
The result of the function call (a value of type TValue)
See Also