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 Jun 3, 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 :
    System.ICloneable,
    System.IComparable,
    System.IComparable<AlphanumericVersion>,
#if PREVIEW
    System.IEqualityOperators<AlphanumericVersion, AlphanumericVersion>,
#endif
    System.IEquatable<AlphanumericVersion>,
#if PREVIEW
    System.IParseable<AlphanumericVersion>,
#endif
    System.Collections.IStructuralComparable,
    System.Collections.IStructuralEquatable

Members

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

Constructors

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

Since the AlphanumericVersion can by it's nature also represent a System.Version, it's constructors will accept either an System.Int64 or a System.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 System.ICloneable.

public System.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 System.IComparable<T>.

public System.Int32 CompareTo(AlphanumericVersion);

Equals(AlphanumericVersion)

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

public System.Boolean Equals(AlphanumericVersion);

Parse(String)

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

public static AlphanumericVersion Parse(System.String);

Parse(String, System.IFormatProvider)

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

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

TryParse(String, out AlphanumericVersion)

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

public static System.Boolean TryParse(System.String,
                                      out AlphanumericVersion);

TryParse(String, System.IFormatProvider, out AlphanumericVersion)

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

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

Properties

Build

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

public System.String Build { get; }

Major

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

public System.String Major { get; }

Minor

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

public System.String Minor { get; }

Revision

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

public System.String Revision { get; }

See also

System.Version

Clone this wiki locally