In short, no.
yield return
has to return something.
http://msdn.microsoft.com/en-us/library/9k7k7cf0.aspx
The Process
method should have a return type of IEnumerable
, IEnumerable<T>
, IEnumerator
, or IEnumerator<T>
. You may return dummy objects
if you really want to use yield
.
You might want to investigate different ways to report progress to the caller.