![]() | asListAsListT Method (IEnumerableT, Boolean, Boolean) |
Namespace: WhetStone.Looping
public static IList<T> AsList<T>( this IEnumerable<T> this, bool force = true, bool ensureReadOnly = false )
If force is , the return value will never be null.
Without force set to , this will only be wrapped if it is IListT, IReadOnlyListT, or String
If this is IReadOnlyListT or String, the return value will be read-only.