Click or drag to resize

YVersion Class

This class represents a version.
Inheritance Hierarchy
SystemObject
  Upsilon.Common.LibraryYVersion

Namespace: Upsilon.Common.Library
Assembly: Upsilon.Common.Library (in Upsilon.Common.Library.dll) Version: 2.2.2+14985a67b419f90e14e6b1bde61d18cf6cf12b27
Syntax
C#
public sealed class YVersion : IComparable

The YVersion type exposes the following members.

Constructors
 NameDescription
Public methodYVersion(String) Create a new YVersion from the string version.
Public methodYVersion(Version) Create a new YVersion from the Versionversion.
Top
Properties
 NameDescription
Public propertyBuild The Build version number.
Public propertyMajor The Major version number.
Public propertyMinor The Minor version number.
Public propertyRevision The Revision version number.
Top
Methods
 NameDescription
Public methodCompareTo Compare the current YVersion to obj and returns the diference between them.
Public methodStatic memberComparison Compare two YVersion and returns the diference between them.
Public methodEquals Check if the current YVersion equals to obj.
(Overrides ObjectEquals(Object))
Public methodGetHashCode Serves as the default hash function.
(Overrides ObjectGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIsValid Check if the current version is a valid and non-null version.
Public methodStatic memberIsValid(String) Check if the given version is a valid and non-null version.
Public methodToString Get the string format of the YVersion according to the Full format.
(Overrides ObjectToString)
Public methodToString(String) Get the string format of the YVersion according to the given format.
  • M for Major.
  • m for Minor.
  • b for Build.
  • r for Revision.
Public methodToString(YVersionFormat) Get the string format of the YVersion according to the given format.
Top
Operators
 NameDescription
Public operatorStatic memberEquality(YVersion, YVersion) Check if version1 is equal to version2.
Public operatorStatic memberGreaterThan(YVersion, YVersion) Check if version1 is greater than version2.
Public operatorStatic memberGreaterThanOrEqual(YVersion, YVersion) Check if version1 is greater or equal than version2.
Public operatorStatic memberInequality(YVersion, YVersion) Check if version1 is not equal to than version2.
Public operatorStatic memberLessThan(YVersion, YVersion) Check if version1 is lower than version2.
Public operatorStatic memberLessThanOrEqual(YVersion, YVersion) Check if version1 is lower or equal than version2.
Top
Fields
 NameDescription
Public fieldStatic memberAlphabet The alphabet used for the Simple string formating.
Top
Extension Methods
 NameDescription
Public Extension MethodGetMD5HashCode Get the MD5 Hash code of an Objectobj as a string.
(Defined by YObjectExtentionMethods)
Public Extension MethodSerializeObject Serialize an ObjecttoSerialize.
(Defined by YSerializationCenter)
Top
See Also