IEnumerableTResult
IEnumerableTResult<TResult> is a generic interface used to model a sequence of results that can be enumerated while also carrying an associated final outcome. In common designs, it extends IEnumerable<TResult> and adds a property TResult Result { get; } that exposes a terminal value computed from the sequence. This combination supports streaming scenarios where items are consumed as they become available and the final result is obtained at the end.
Implementation details vary. Some implementations compute Result lazily as enumeration proceeds; others compute it after the
Common use cases include data processing pipelines, where each yielded element is processed immediately and a
For example, a class that reads log entries and yields lines while computing a final status value
See also: IEnumerable, Result patterns, streaming interfaces.