Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
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
Medium Priority
?
352 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
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 lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

618 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