Table of Contents

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 = 0

Ignore it.

Throw = 1

Throw an InvalidVersionException on loading.

RenameAndLoadDefault = 2

Will 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 = 3

Incase of invalid version, default settings will be loaded without touching the existing file until next save.

LoadDefaultAndSave = 4

Incase of invalid version, default settings will be loaded and saved to disk immediately.