c# - FileInfo in UserSettings saves as Null? -


i've looked @ fileinfo class , see marked serializableattribute. not understand attribute indicates, me suggests fileinfo class should serialize xml file settings save, not case, fileinfo setting comes through null when project loads.

how can save fileinfo usersettings?

you can't. xmlserializer requires parameter-less constructor - fileinfo not have. it's marked serializable because there other serializers don't have same requirement.

related question.


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -