-
-
Notifications
You must be signed in to change notification settings - Fork 44
sharedlibrarycorehelpers BuildNumber
RaidMax edited this page May 21, 2023
·
1 revision
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
Type | Name | Methods |
---|---|---|
int |
Build |
get, private set |
int |
Major |
get, private set |
int |
Minor |
get, private set |
int |
Revision |
get, private set |
Returns | Name |
---|---|
int |
CompareTo (object obj) |
bool |
Equals (object obj) |
int |
GetHashCode () |
string |
ToString () |
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) |
IComparable
public virtual int CompareTo(object obj)
Type | Name | Description |
---|---|---|
object |
obj |
public static bool TryParse(string input, out BuildNumber buildNumber)
Type | Name | Description |
---|---|---|
string |
input | |
out BuildNumber
|
buildNumber |
public static BuildNumber Parse(string buildNumber)
Type | Name | Description |
---|---|---|
string |
buildNumber | The build number string to parse |
Parses a build number string into a BuildNumber class
A new BuildNumber class set from the buildNumber string
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 |
public override string ToString()
public static bool operator >(BuildNumber first, BuildNumber second)
Type | Name | Description |
---|---|---|
BuildNumber |
first | |
BuildNumber |
second |
public static bool operator <(BuildNumber first, BuildNumber second)
Type | Name | Description |
---|---|---|
BuildNumber |
first | |
BuildNumber |
second |
public override bool Equals(object obj)
Type | Name | Description |
---|---|---|
object |
obj |
public override int GetHashCode()
public int Major { get; private set; }
public int Minor { get; private set; }
public int Build { get; private set; }
public int Revision { get; private set; }
Generated with ModularDoc