For Babelfish Release 1.11.1.3

Version Class

Represents a string of a Scopos Version number. Is in the form of x.y.z.b. x is the Major Version y is the Minor Version z is the Patch Version p is the Build version. Defaults to 0 if not included in the string.

Definition

Namespace: Scopos.BabelFish.DataModel.Common
Assembly: BabelFish (in BabelFish.dll) Version: 1.11.1.4+b1da393815f6638555a663d9a94167ecabea5695
C#
public class Version : IComparable<Version>, 
	IEquatable<Version>
Inheritance
Object    Version
Implements
IComparableVersion, IEquatableVersion

Constructors

Version 
Version(String) Constructor that takes in a version string (e.g. 1.2.3b4) and parses it for the Major, Minor, Patch, and Build Version

Properties

BuildVersion Build Version number. Representing internal builds, not for customer release.
MajorVersion Major Version number. Representing significant changes to the code.
MinorVersion Minor Version number. Representing new features to the code.
PatchVersion Patch Version number. Representing bug fixes.

Methods

CompareTo Returns -1 if this instance precedes other. Returns 0 if this instance is equal to other. Returns 1 if this instance follows other, or other is null
Equals(Object) Equals operator
(Overrides ObjectEquals(Object))
Equals(Version) Returns true if this instance is equal to the passed in other AthenaVersion
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCode Returns a has code of the ToString() value.
(Overrides ObjectGetHashCode)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToString Returns a string in the form x.y.z.b Or x.y.z
(Overrides ObjectToString)
TryParse 

Operators

Equality(Version, Version) Equality operator
GreaterThan(Version, Version) Greater than operator
GreaterThanOrEqual(Version, Version) Greater than or equal operator
Inequality(Version, Version) Inequality operator
LessThan(Version, Version) Less than operator
LessThanOrEqual(Version, Version) Less than or equal operator

See Also