Enum VersioningResultAction
- Namespace
- Nucs.JsonSettings.Modulation
- Assembly
- Nucs.JsonSettings.dll
In a case of an invalid action, what should be the course.
public enum VersioningResultAction
Fields
DoNothing = 0Ignore it.
Throw = 1Throw an InvalidVersionException on loading.
RenameAndLoadDefault = 2Will append the version to the end of the faulty file's name and load the default settings and save to disk.
i.e. 'myfile.json' versioned 1.0.0.5 will be renamed to myfile.1.0.0.5.json if it fails on version parsing.LoadDefault = 3Incase of invalid version, default settings will be loaded without touching the existing file until next save.
LoadDefaultAndSave = 4Incase of invalid version, default settings will be loaded and saved to disk immediately.