lock property

IList<T> lock

Locks the list, returning an immutable list (IList).

Implementation

IList<T> get lock => IList<T>(this);