Tuesday, November 30, 2010

yeild

yeild is the income return of an investment. (in finance)

in C#,

  • yeild keyword use inside iterator block.
  • it indicates the end of iterator block

restriction
  • cannot use with unsafe block
  • parameter to method cannot be out/ref 
  • cannot appear in anonymous method

No comments: