Click or drag to resize
VersionSpec Class
Represents a version specification, that is, a collection of one or more versions. Contains methods to parse a string with a version spec, check whether a version is included in a version spec, etc.
Inheritance Hierarchy
SystemObject
  semver.toolsVersionSpec

Namespace: semver.tools
Assembly: semver.tools (in semver.tools.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class VersionSpec : IVersionSpec

The VersionSpec type exposes the following members.

Constructors
  NameDescription
Public methodVersionSpec
Parameterless constructor.
Public methodVersionSpec(SemanticVersion)
Constructs a version spec that contains just one version.
Public methodVersionSpec(SemanticVersion, Boolean, SemanticVersion, Boolean)
Constructs a version spec.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberParseNuGet
Parses a string with a version spec in NuGet format. See http://docs.nuget.org/docs/reference/versioning
Public methodPrettyPrint
Returns a string with a nice human readable bit of text describing the version spec.
Public methodSatisfies
Returns true if the specified version is within the version spec.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodToStringNuGet
Returns a string representing the version spec in NuGet format. See http://docs.nuget.org/docs/reference/versioning
Public methodStatic memberTryParseNuGet
Attempts to parse a string with a version spec in NuGet format. See http://docs.nuget.org/docs/reference/versioning
Top
Properties
  NameDescription
Public propertyIsMaxInclusive
True if maxVersion is included in the version spec. False if only versions lower (but not equal) to maxVersion are in the version spec.
Public propertyIsMinInclusive
True if minVersion is included in the version spec. False if only versions higher (but not equal) to minVersion are in the version spec.
Public propertyMaxVersion
Upper bound of the version spec.
Public propertyMinVersion
Lower bound of the version spec.
Top
See Also