lock property

IList<T> lock

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

Implementation

IList<T> get lock => (_list != null) ? IList<T>(_list) : _iList!;