Stories recently tagged with 'Dictionary'

How to pass Dictionary as a parameter to an ActionResult(stackoverflow.com)

submitted by crpietschmanncrpietschmann(11.3k) 2 years, 7 months ago

I'm using jQuery to make an Ajax call using an Http Post in ASP.NET MVC. I would like to be able to pass a Dictionary of values. I finally figured out the best solution is to pass JSON via the Http Post and use a custom ModelBinder to convert the JSON to a Dictionary. One thing I did in my solution is created a JsonDictionary object that inherits from Dictionary so that I can attach the custom ModelBinder to the JsonDictionary type, and it wont cause any conflicts in the future if I use Dictionary as a ActionResult parameter later on for a different purpose than JSON. read more...

add a comment |category: |Views: 121

tags: another

Complex Keys In Generic Dictionary(vadmyst.blogspot.com)

submitted by VadmystVadmyst(395) 2 years, 7 months ago

How to work with complex keys in generic dictionary read more...

add a comment |category: |Views: 30

tags: another

PolyDictionary(removingalldoubt.com)

submitted by veverkapveverkap(810) 4 years, 10 months ago

Put multiple types in a single dictionary without losing type safety read more...

1 comment |category: |Views: 4

tags: another

IndexedDictionary. Access a dictionary using item index(papadi.gr)

submitted by papadipapadi(310) 4 years, 10 months ago

.NET Dictionary object can hold a collection of keys and values. It allows you to iterate through these values using enumeration and you can also retrieve a value by using it's associated key. But what if you want to create a collection of items and access them both using their associated key or numeric index in the collection? I created a VB.NET class that I named IndexedDictionary that does exactly that. The class implements the generic IDictionary interface. Internally it contains an instance of a generic dicrtionary and also an instance of a List which holds the numeric position of each element in the dictionary. read more...

add a comment |category: |Views: 173

tags: another