c# - How do I serialize a system type so I can store in viewstate? -


i have property list<basevalidator>. need save property in viewstate exists on postback. error indicate list isn't serializable.

i've googled ... , googled not got answer works yet.

i've created own custom class still error because basevalidator isn't simple type.

anyone got ideas?

a list serializable if generic type serializable. should make generic object , sub objects in list serializable. add [serializable] tag these objects.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -