IDictionary<DateTime, Double> get(string ticker, string type, DateTime from, DateTime To);
is in the interface called "ITimeSeries.cs"
I have to implement that but I am just wondering what the following does.
IDictionary<DateTime, Double> get(string ticker, string type, DateTime from, DateTime To);
I know how IDictionary works(its like hashTable) but what "get(string ticker, string type, DateTime from, DateTime To);" is for in this case? and how is it used with "IDictionary<DateTime, Double> "?
Thanks
Loading
Amit ChoudharyPosted Feb 9, 2011, 11:54 PM
Well i guess you are having a prewritten code. This is a function declared in the interface ITimeSeries.cs
Here IDictionary<DateTime, Double> is the return type of function get(string ticker, string type, DateTime from, DateTime To);
While implementing the interface to your class you have to define the body of this function and your logic should return the object of type IDictionary
Hope this will clear your doubts.
Thanks.