var effects = this.EffectsRecursive;
foreach ( Effect effect in effects )
{
...
}
vs
foreach ( Effect effect in this.EffectsRecursive )
{
...
}
No, the foreach operates on the result of the call to IEnumerable.GetEnumerator, which will get called only once either way.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With