Table of Contents

Class ProjectApiVersion

Namespace
Hi.Common.XmlUtils
Assembly
HiGeom.dll

Carries the API version read from a project file's XML attribute through the XFactory deserialization pipeline via the object[] res parameter. Consumers retrieve it with res?.OfType<ProjectApiVersion>().FirstOrDefault().

public class ProjectApiVersion
Inheritance
ProjectApiVersion
Inherited Members
Extension Methods

Constructors

ProjectApiVersion(Version)

Initializes a new instance carrying the specified version.

public ProjectApiVersion(Version version)

Parameters

version Version

API version read from the project XML; may be null when the source file did not record a version.

Properties

Version

API version stamped on the source project file at save time.

public Version Version { get; }

Property Value

Version

Methods

IsOlderThan(Version)

Returns true if the source file was saved by an API version older than version. Returns false when the source version is unknown (null).

public bool IsOlderThan(Version version)

Parameters

version Version

Returns

bool