Skip to content
This repository was archived by the owner on May 18, 2026. It is now read-only.

AlphanumericVersion

Davy Ganzel edited this page Mar 23, 2022 · 6 revisions

Assembly: Narumikazuchi.dll
Namespace: Narumikazuchi

Description

Represents a version instance that is not limited to numbers but instead allows for alphanumeric characters to be used.

public readonly struct AlphanumericVersion :
    ICloneable,
    IComparable,
    IComparable<AlphanumericVersion>,
    IEqualityOperators<AlphanumericVersion, AlphanumericVersion>,
    IEquatable<AlphanumericVersion>,
    IParseable<AlphanumericVersion>,
    IStructuralComparable,
    IStructuralEquatable

Members

Constructors
Clone()
CompareTo(AlphanumericVersion)
Equals(AlphanumericVersion)
Parse(String)
Parse(String, System.IFormatProvider)
TryParse(String, out AlphanumericVersion)
TryParse(String, System.IFormatProvider, out AlphanumericVersion)
Build
Major
Minor
Revision

Constructors

AlphanumericVersion(Int64 or String, [Int64 or String], [Int64 or String], [Int64 or String])

Since the AlphanumericVersion can by it's nature also represent a System.Version, it's constructors will accept either an Int64 or a String for any of it's 4 parameters in any configuration needed. The output of the ToString() method can also be adjusted by using a specific pattern.

Methods

Clone()

Creates a new object which is an exact copy of this instance.
Inherited from ICloneable.

public Object Clone();

CompareTo(AlphanumericVersion)

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Inherited from IComparable<T>.

public Int32 CompareTo(AlphanumericVersion);

Equals(AlphanumericVersion)

Indicates whether the current object is equal to another object of the same type.
Inherited from IEquatable<T>.

public Boolean Equals(AlphanumericVersion);

Parse(String)

Parses the specified string into a new AlphanumericVersion instance.
Inherited from IParseable<T>.

public static AlphanumericVersion Parse(String);

Parse(String, System.IFormatProvider)

Parses the specified string into a new AlphanumericVersion instance.
Inherited from IParseable<T>.

public static AlphanumericVersion Parse(String, System.IFormatProvider);

TryParse(String, out AlphanumericVersion)

Parses the specified string into a new AlphanumericVersion instance.
Inherited from IParseable<T>.

public static Boolean TryParse(String, out AlphanumericVersion);

TryParse(String, System.IFormatProvider, out AlphanumericVersion)

Parses the specified string into a new AlphanumericVersion instance.
Inherited from IParseable<T>.

public static AlphanumericVersion Parse(String, System.IFormatProvider, out AlphanumericVersion);

Properties

Build

Gets the third (3.) value of the version, commonly reffered to as "build"-number.

public String Build { get; }

Major

Gets the first (1.) value of the version, commonly reffered to as "major"-number.

public String Major { get; }

Minor

Gets the second (2.) value of the version, commonly reffered to as "minor"-number.

public String Minor { get; }

Revision

Gets the fourth (4.) value of the version, commonly reffered to as "revision"-number.

public String Revision { get; }

See also

System.Version

Clone this wiki locally