G
Gustaf
I had VS (2008) telling me my class isn't enumerable when trying to use a foreach loop. This happens quite often, and every time I Google around for an hour trying to find a solution that applies to my case. It needs to be understandable and easy to implement. It needs to work with List<T> collections. It should be the best practice in .NET 3.5. Can anyone point me once and for all to the right solution? The best I can find right now is this:
http://msdn.microsoft.com/en-us/library/system.collections.ienumerable.aspx
But I don't want to write all that every time I make a collection lass, and I don't like the public class variable in the enumerator class. Didn't enumerations get a lot easier in .NET 2.0?
Gustaf
http://msdn.microsoft.com/en-us/library/system.collections.ienumerable.aspx
But I don't want to write all that every time I make a collection lass, and I don't like the public class variable in the enumerator class. Didn't enumerations get a lot easier in .NET 2.0?
Gustaf