Creating a multidimensional dictionary in C# for Windows Phone 7.8 -


i need store daily statistics in isolated storage of windpws phone leads me believe multidimensional dictionary useful i'm having trouble wrapping head around logic needed work.

the stats looks in pseudocode:

dictionary dailystats { 1, [stats] => dictionary {   [class] => 5,   [entertainment] => 3,   [personnel] => 2,   [price] => 7,   [quality] => 6   } } 

i started out this:

var dailystats = new dictionary<int, dictionary<string, string>>(); 

but wanted assign values structure got lost quite fast. values collected app each day.

i've thought of linq seems overkill i'm trying do.

can point me in right direction?

thanks!

if have 1 dicionary statusclasses???

var dailystats = new dictionary<int, statusclass>(); 

and:

class statusclass {     //substitute vars type     var class;     var entertainment;     var personnel;     var price;     var quality;      public statusclass(var classvalue, var entertainmentvalue, var personnel.....)     {         class = classvalue;         entertainment = entertainmentvalue;         ...........     } } 

Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -