KGy SOFT

ListExtensionsAsThreadSafeT Method

KGy SOFT Core Libraries Help

Namespace:  KGySoft.CoreLibraries
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 6.0.0
Syntax

public static LockingList<T> AsThreadSafe<T>(
	this IList<T> list
)

Parameters

list
Type: System.Collections.GenericIListT
The list to create a thread-safe wrapper for.

Type Parameters

T
The type of the elements in the list.

Return Value

Type: LockingListT
A LockingCollectionT, which provides a thread-safe wrapper for the specified list.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IListT. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also

Reference