Class Range
Assembly: SemVer.dll
Syntax
[Obsolete("Use Hive.Versioning.VersionRange instead.")]
public class Range : IEquatable<Range>, IEquatable<VersionRange>
Constructors
|
Improve this Doc
View Source
Range(String, Boolean)
Declaration
public Range(string rangeSpec, bool loose = false)
Parameters
Properties
|
Improve this Doc
View Source
UnderlyingRange
Declaration
public VersionRange UnderlyingRange { get; }
Property Value
Type |
Description |
Hive.Versioning.VersionRange |
|
Methods
|
Improve this Doc
View Source
Equals(VersionRange)
Declaration
public bool Equals(VersionRange other)
Parameters
Type |
Name |
Description |
Hive.Versioning.VersionRange |
other |
|
Returns
|
Improve this Doc
View Source
Equals(Range)
Declaration
public bool Equals(Range other)
Parameters
Type |
Name |
Description |
Range |
other |
|
Returns
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
|
Improve this Doc
View Source
ForHiveRange(VersionRange)
Declaration
public static Range ForHiveRange(VersionRange real)
Parameters
Type |
Name |
Description |
Hive.Versioning.VersionRange |
real |
|
Returns
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
|
Improve this Doc
View Source
Intersect(Range)
Declaration
public Range Intersect(Range other)
Parameters
Type |
Name |
Description |
Range |
other |
|
Returns
|
Improve this Doc
View Source
IsSatisfied(Version)
Declaration
public bool IsSatisfied(Version version)
Parameters
Type |
Name |
Description |
Hive.Versioning.Version |
version |
|
Returns
|
Improve this Doc
View Source
IsSatisfied(Version)
Declaration
public bool IsSatisfied(Version version)
Parameters
Type |
Name |
Description |
Version |
version |
|
Returns
|
Improve this Doc
View Source
IsSatisfied(String, Boolean)
Declaration
public bool IsSatisfied(string versionString, bool loose = false)
Parameters
Returns
|
Improve this Doc
View Source
IsSatisfied(String, String, Boolean)
Declaration
public static bool IsSatisfied(string rangeSpec, string versionString, bool loose = false)
Parameters
Returns
|
Improve this Doc
View Source
MaxSatisfying(IEnumerable<Version>)
Declaration
public Version MaxSatisfying(IEnumerable<Version> versions)
Parameters
Returns
|
Improve this Doc
View Source
MaxSatisfying(IEnumerable<String>, Boolean)
Declaration
public string MaxSatisfying(IEnumerable<string> versionStrings, bool loose = false)
Parameters
Returns
|
Improve this Doc
View Source
MaxSatisfying(String, IEnumerable<String>, Boolean)
Declaration
public static string MaxSatisfying(string rangeSpec, IEnumerable<string> versions, bool loose = false)
Parameters
Returns
|
Improve this Doc
View Source
Satisfying(IEnumerable<Version>)
Declaration
public IEnumerable<Version> Satisfying(IEnumerable<Version> versions)
Parameters
Returns
|
Improve this Doc
View Source
Satisfying(IEnumerable<String>, Boolean)
Declaration
public IEnumerable<string> Satisfying(IEnumerable<string> versions, bool loose = false)
Parameters
Returns
|
Improve this Doc
View Source
Satisfying(String, IEnumerable<String>, Boolean)
Declaration
public static IEnumerable<string> Satisfying(string rangeSpec, IEnumerable<string> versions, bool loose = false)
Parameters
Returns
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
|
Improve this Doc
View Source
Equality(Range, Range)
Declaration
public static bool operator ==(Range a, Range b)
Parameters
Returns
|
Improve this Doc
View Source
Inequality(Range, Range)
Declaration
public static bool operator !=(Range a, Range b)
Parameters
Returns
Implements
Extension Methods