Generic Value Object With Yield Return
June 9, 2009
3 comments
Inspired by this and this, here’s my version.
ssuming you’d have a lot of these objects building up in the GC, it might prove important to reduce the number of ancillary allocations going on, so it may be better to avoid creating a list of the properties in every single instance.
Categories: value types, yield return
C#, value types, yield return
