Unoriginal IEnumerable does not implement IDisposable. It is possible that VB.Net and C # will be duck-type either IDisposable or the .Dispose () method when using an enumerator that does not support IEnumerable (Of T), but, of course, you cannot rely on all consumers not common IEnumerable to do this. If the consumer enumerated does not work properly. Specify () it, the execution of the enumerator, including explicit or implicit final sentences , will be canceled.
source
share