Keywords – yield

yield is a keyword used to return values for iterators (Such as foreach)

The iterator method must be named GetEnumerator() and the return value must be of type IEnumerator