Wednesday, April 1, 2015

What is the technology here(IEnumerable)?

??????


darnold924:


I meant



public static IEnumerable<object> AllParents(object obj)
{
while (true)
{
obj
= GetParentObject(obj);

if (obj == null)
yield break;

yield return obj;
}
}

No comments:

Post a Comment