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.
Comments
Post a Comment