Skip to content

Collection of DateTimes

Ian

Asked Oct 10, 2006, 1:05 AM EDT1 answer
Share
LinkedInX
I keep reading that you shouldn't store value types in an array/arraylist etc because of the boxing overhead incurred. So what ishould I do if I want to store multiple datetimes? Should I wrap DateTime in a class? Any advice gratefully received ....

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Are you working with .NET 1.1 or 2.0?  If 2.0 you should check out Generics, I'm still learning about them and how to use them but i think they may be the answer to your concern. 

    Check out MSDN's Intro to Generics here:
    http://msdn2.microsoft.com/en-us/library/0x6a29h6.aspx

    Later
    Mark
    0