Wow that is making using dictionaries a LOT easier
teus on
September 24th, 2013
Nice. I made an extension method which just creates the item if it not already exists.
The key is generated (string to lower . replace space for -, etc) from the text on the first load.
But you can also specify the key
There are some more features but I made i mainly because I couldn’t be bothered to think about it. The site I’m now working on has over 250 elements so I needed something automatic which would not interupt my train of thought.
Wow that is making using dictionaries a LOT easier
Nice. I made an extension method which just creates the item if it not already exists.
The key is generated (string to lower . replace space for -, etc) from the text on the first load.
But you can also specify the key
There are some more features but I made i mainly because I couldn’t be bothered to think about it.
The site I’m now working on has over 250 elements so I needed something automatic which would not interupt my train of thought.
Regards Teus
@teus sounds sweet, share it