Solved

How to create a time series as a SortedDictionary(Of Date, Object) from a generic collection in VB.NET?

Posted on 2012-04-12
1
334 Views
Last Modified: 2012-04-12
I have a collection of objects in a Dictionary(Of Integer, SomeObject) where the integer is an Id. The stored objects have a date property, and I want to create an extension to the Dictionary(Of Integer, SomeObject) that return a time series using the date property.
I was thinking to implement the time series using a SortedDictionary(Of Date, SomeObject).

What is the best practice way to do that conversion to a time series? Obviously I'm looking for a smart .NET way to do it and not a from-scratch algorithm.
0
Comment
Question by:andreas_rafn
1 Comment
 

Accepted Solution

by:
andreas_rafn earned 0 total points
ID: 37838712
Not very well thought through, adding dates as kesy that is, since there might be several objects having same date.

Anyways I learned how to use comparers ad made a customized comparer for the purpose.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question