Enum VersionUpgradePolicy
- Namespace
- DatabentoDotNet.Dbn
- Assembly
- DatabentoDotNet.Dbn.dll
How to handle decoding DBN data from other versions.
public enum VersionUpgradePolicy : byte
Fields
AsIs = 1Decode data from all supported versions (up to and including Version) as-is.
UpgradeToV2 = 2Decode and convert data from DBN versions prior to version 2 to that version. Decoding data from newer versions fails.
UpgradeToV3 = 3Decode and convert data from DBN versions prior to version 3 to that version. Decoding data from newer versions (when they're introduced) fails.
Remarks
Control-flow-only: unlike every other enum in this namespace, this type never appears on the
wire, so it has no WireStrings entry. Upstream's discriminants start at 1, so
there is no numeric zero value to make UpgradeToV3 (upstream's default) line up
with C#'s implicit default(VersionUpgradePolicy) without renumbering away from
upstream's exact values — which this port will not do. Callers that need "the default" must
reference UpgradeToV3 explicitly rather than relying on
default(VersionUpgradePolicy), which is the unnamed zero value (VersionUpgradePolicy)0.