问题
Is there any way of storing a generic dictionary object in an asp.net profile? I have tried using this but it still doesn't like it: http://weblogs.asp.net/pwelter34/default.aspx
Thanks, Nick
回答1:
Check out the KeyedCollection. Its a generic dictionary that is serializable to xml. There are some limitations, however.
来源:https://stackoverflow.com/questions/1277656/store-a-generic-dictionary-in-an-asp-net-profile