pmMDA.NET

PagedListBase.SyncRoot Property

[This is preliminary documentation and subject to change.]

Gets an object that can be used to synchronize the access to this list.

public object SyncRoot {get;}

Property Value

An object that can be used to synchronize access to this list.

Implements

ICollection.SyncRoot

Example

The expected usage for SyncRoot looks like this

PagedListBase myList = new PagedList(/*...*/);
lock(myList.SyncRoot ) {
  Some operation on the list, which is now thread-safe.
}

See Also

PagedListBase Class | PmMda.Net.Dog.Paging Namespace