Fix to ToExpando() to work with any subclass of NameValueCollection (ex: FormCollection from MVC) #27

merged 1 commit into from Mar 31, 2011


None yet
2 participants

hgarcia commented Mar 25, 2011

Added a check for IsSubclassOf(typeof(NameValueCollection) inside the ToExpando() method.
Now you can pass any subclass of NameValueCollection and it will work.

Adding IsSubclassOf to check if we can use the object as a NameValueC…
…ollection in our attempt to convert into Expando.

@robconery robconery merged commit 44a393a into FransBouma:master Mar 31, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment