« first day (2165 days earlier)      last day (2780 days later) » 

8:02 PM
So I need to cast IEnumerable<Dictionary<string,string>> to List<KeyValuePair<string,string>>
 
you meant "convert" probably
also, the target structure is more flat than the source one
do you want to flatten it
 
Dictionary<TKey, TValue> is ICollection<KeyValuePair<TKey, TValue>> so part of that shouldn't be too difficult
but you'll have to define how to aggregate each dictionary together
 
@juanvan - Damn! My bad! Does it make sense if i have access 2016? Because i've used this: connectionstrings.com/access-2013 and didn't work either ?
 
I am able to get to this part but now I need help with this conversion List<Dictionary<string,string>> to List<KeyValuePair<string,string>>
 
well obviously
it would be helpful if you provided expected results for example inputs
 
8:15 PM
Sorry, it's related to this post: stackoverflow.com/questions/39579163/…
I tried this so far
  List<KeyValuePair<string, string>> newRows = rows.ToList();

   where rows is IEnumerable<Dictionary<string,string>>

   var csvToSave = JsonConvert.DeserializeObject<EntityObject>(JsonConvert.SerializeObject(Format.ToJson(newRows)));

   static class Format
    {
        public static string ToJson(List<KeyValuePair<string, string>> values)
        {
            StringBuilder builder = new StringBuilder();
            foreach (var item in values)
            {
                builder.Append(string.Format("{{{0}:{1}}},", item.Key, item.Value));
 
8:41 PM
hello guys
i have a bitmap which is about 2 mb in size
i need to convert it to within 250 kb
keeping as much quality as possible
what would be the best way of doing it?
 
by compressing it
 
which compression?
i have already ued
system.io.compression.deflatestream
but i need to reduce size even more
 
what about png
 
actually i have the byte data
i can write in png
and compress it
but it would be good if i can compress the byte data directly
cause the compresison needs to be done in quick time
 
9:04 PM
Have you done any testing to show that PNG compression is slow?
Image compression schemes were developed to compress images, so they are very good at it
 

« first day (2165 days earlier)      last day (2780 days later) »