interface CanIterateNullable<T>
Interface CanIterateNullable<T> specifies that a class can produce an IteratorNullable<T> which can iterate over objects of type T. This interface allows an object of the class to be the target of a foreach loop or another context where iteration over values is required. This interface differs from CanIterate<T> in that it produces an IteratorNullable<T>, some of whose iterated values could be null.
| Modifiers | Return Types | Method and Description |
|---|---|---|
public readonly |
(IteratorNullable<T>) |
iterator()Method called to produce a new iterator, presumably to the first item in a collection, if items are ordered. |
public readonly iterator() => (IteratorNullable<T>)
Method called to produce a new iterator, presumably to the first item in a collection, if items are ordered.
iterator to objects of type nullable T