The ComponentVersion
property represents the version of the component. It is utilized by the JsonUpgrader
to manage component versioning and ensure compatibility during serialization and deserialization processes.
The ComponentVersion
property represents the version of the component. It is utilized by the JsonUpgrader
to manage component versioning and ensure compatibility during serialization and deserialization processes.
Use the ComponentVersion
property to track and manage the version of a component. This is particularly useful when you need to upgrade or migrate data between different versions of a component.
// Example of accessing the ComponentVersion property public class MyComponent : Component { public void CheckVersion() { int version = this.ComponentVersion; if (version < 2) { // Perform upgrade logic } } }