DotNext by .NET Foundation and Contributors

<PackageReference Include="DotNext" Version="4.15.0" />

 ReadOnlyListView<TInput, TOutput>

public struct ReadOnlyListView<TInput, TOutput> : IReadOnlyList<TOutput>, IEnumerable<TOutput>, IEnumerable, IReadOnlyCollection<TOutput>, IEquatable<ReadOnlyListView<TInput, TOutput>>
Represents lazily converted read-only list.
public int Count { get; }

Count of items in the list.

public TOutput this[int index] { get; }

Gets item at the specified position.

public ReadOnlyListView(IReadOnlyList<TInput> list, Func<TInput, TOutput> mapper)

Initializes a new lazily converted view.

public ReadOnlyListView(IReadOnlyList<TInput> list, Converter<TInput, TOutput> mapper)

Initializes a new lazily converted view.

public static bool op_Equality(ref ReadOnlyListView first, ref ReadOnlyListView second)

Determines whether two views are same.

public static bool op_Inequality(ref ReadOnlyListView first, ref ReadOnlyListView second)

Determines whether two views are not same.

public bool Equals(ReadOnlyListView<TInput, TOutput> other)

Determines whether two converted lists are same.

public IEnumerator<TOutput> GetEnumerator()

Returns enumerator over converted items.