Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: IEnumerable<T> SelectChain<T>(this T, Func<T, T>)

Declaration

public static IEnumerable<T> SelectChain<T>(
    this T obj,
    Func<T, T> next
)

Summary

Enumerates a chain of objects where each object refers to the next one. The chain starts with the specified object and ends when null is encountered.

Generic type parameters

T
  • Must be a reference type.
Type of object to enumerate.

Parameters

this Tobj Initial object.
Func<T, T>next A function that returns the next object given the current one. If null is returned, enumeration will end.