C# Class McSherry.SemanticVersioning.Ranges.VersionRange

Exibir arquivo Open project: McSherry/McSherry.SemanticVersioning Class Usage Examples

Public Methods

Method Description
SatisfiedBy ( ) : bool

Determines whether the current version range is satisfied by all specified SemanticVersion instances.

SatisfiedBy ( IEnumerable semvers ) : bool

Determines whether the current version range is satisfied by all specified SemanticVersion instances.

SatisfiedBy ( SemanticVersion semver ) : bool

Determines whether the current version range is satisfied by a specified SemanticVersion.

VersionRange ( string range ) : System

Creates a version range from a string representing the range.

Private Methods

Method Description
VersionRange ( IEnumerable cmps ) : System

Creates a new VersionRange instance from a set of comparator sets.

_ctorPassthrough ( string range ) : IEnumerable>

Method Details

SatisfiedBy() public method

Determines whether the current version range is satisfied by all specified SemanticVersion instances.

public SatisfiedBy ( ) : bool
return bool

SatisfiedBy() public method

Determines whether the current version range is satisfied by all specified SemanticVersion instances.

public SatisfiedBy ( IEnumerable semvers ) : bool
semvers IEnumerable /// The instances to check /// against the current version range. ///
return bool

SatisfiedBy() public method

Determines whether the current version range is satisfied by a specified SemanticVersion.

public SatisfiedBy ( SemanticVersion semver ) : bool
semver SemanticVersion /// The to check against the /// current version range. ///
return bool

VersionRange() public method

Creates a version range from a string representing the range.

/// Thrown when is null, empty, /// or contains only whitespace characters. /// /// Thrown when is invalid for any /// reason unrelated to an invalid semantic version string. /// /// Thrown when contains an invalid /// semantic version string. ///
public VersionRange ( string range ) : System
range string /// The version range string from which to create an instance. ///
return System