Skip to main content

AgileDotNetLicense GetLocks$$1

Gets a lock of a given type.

Syntax

Visual Basic

Public Sub GetLocks(Of T As Lock)()

C#

public T[] GetLocks<T>()
where T : Lock;

Return Value

The first occurence of a lock.

Remarks

Returns a lock of type , in case more than one lock exists the first occurrence is returned.

See Also

AgileDotNetLicense Class | AgileDotNet.Licensing Namespace