Yield keyword in C#(www.ginktage.com)
submitted by
isenthil(2304) 2 years ago
I got caught with this keyword recently.Very much unknown to me ,but when explored was able to know its real advantages.
It is used to iterate through objects ,create a enumerator returned by a method.
public static IEnumerable<int> Test(int num)
|category: C#
|Views: 14
tags:
C# another
Everyones tags:
Your Tags: