1 sharedlibrarycorehelpers BuildNumber
RaidMax edited this page 2023-05-20 22:09:21 -05:00

BuildNumber Public class

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph SharedLibraryCore.Helpers
  SharedLibraryCore.Helpers.BuildNumber[[BuildNumber]]
  end
  subgraph System
System.IComparable[[IComparable]]
  end
System.IComparable --> SharedLibraryCore.Helpers.BuildNumber

Members

Properties

Public properties

Type Name Methods
int Build get, private set
int Major get, private set
int Minor get, private set
int Revision get, private set

Methods

Public methods

Returns Name
int CompareTo(object obj)
bool Equals(object obj)
int GetHashCode()
string ToString()

Public Static methods

Returns Name
bool operator <(BuildNumber first, BuildNumber second)
bool operator >(BuildNumber first, BuildNumber second)
BuildNumber Parse(string buildNumber)
Parses a build number string into a BuildNumber class
bool TryParse(string input, out BuildNumber buildNumber)

Details

Inheritance

  • IComparable

Methods

CompareTo

Source code

public virtual int CompareTo(object obj)
Arguments
Type Name Description
object obj

TryParse

Source code

public static bool TryParse(string input, out BuildNumber buildNumber)
Arguments
Type Name Description
string input
out BuildNumber buildNumber

Parse

Source code

public static BuildNumber Parse(string buildNumber)
Arguments
Type Name Description
string buildNumber The build number string to parse
Summary

Parses a build number string into a BuildNumber class

Returns

A new BuildNumber class set from the buildNumber string

Exceptions
Name Description
ArgumentException Thrown if there are less than 2 or
more than 4 version parts to the build number
FormatException Thrown if string cannot be parsed
to a series of integers
ArgumentOutOfRangeException Thrown if any version
integer is less than zero

ToString

Source code

public override string ToString()

Operator >

Source code

public static bool operator >(BuildNumber first, BuildNumber second)
Arguments
Type Name Description
BuildNumber first
BuildNumber second

Operator <

Source code

public static bool operator <(BuildNumber first, BuildNumber second)
Arguments
Type Name Description
BuildNumber first
BuildNumber second

Equals

Source code

public override bool Equals(object obj)
Arguments
Type Name Description
object obj

GetHashCode

Source code

public override int GetHashCode()

Properties

Major

public int Major { get; private set; }

Minor

public int Minor { get; private set; }

Build

public int Build { get; private set; }

Revision

public int Revision { get; private set; }

Generated with ModularDoc