Search Results for

    Show / Hide Table of Contents

    Class Range

    Inheritance
    System.Object
    Range
    Implements
    System.IEquatable<Range>
    System.IEquatable<VersionRange>
    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: SemVer
    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
    Type Name Description
    System.String rangeSpec
    System.Boolean loose

    Properties

    | Improve this Doc View Source

    UnderlyingRange

    Declaration
    public VersionRange UnderlyingRange { get; }
    Property Value
    Type Description
    VersionRange

    Methods

    | Improve this Doc View Source

    Equals(Range)

    Declaration
    public bool Equals(Range other)
    Parameters
    Type Name Description
    Range other
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Equals(Nullable<VersionRange>)

    Declaration
    public bool Equals(VersionRange? other)
    Parameters
    Type Name Description
    System.Nullable<VersionRange> other
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Overrides
    System.Object.Equals(System.Object)
    | Improve this Doc View Source

    ForHiveRange(VersionRange)

    Declaration
    public static Range ForHiveRange(VersionRange real)
    Parameters
    Type Name Description
    VersionRange real
    Returns
    Type Description
    Range
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.Object.GetHashCode()
    | Improve this Doc View Source

    Intersect(Range)

    Declaration
    public Range Intersect(Range other)
    Parameters
    Type Name Description
    Range other
    Returns
    Type Description
    Range
    | Improve this Doc View Source

    IsSatisfied(Hive.Versioning.Version)

    Declaration
    public bool IsSatisfied(Hive.Versioning.Version version)
    Parameters
    Type Name Description
    Hive.Versioning.Version version
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    IsSatisfied(Version)

    Declaration
    public bool IsSatisfied(Version version)
    Parameters
    Type Name Description
    Version version
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    IsSatisfied(String, Boolean)

    Declaration
    public bool IsSatisfied(string versionString, bool loose = false)
    Parameters
    Type Name Description
    System.String versionString
    System.Boolean loose
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    IsSatisfied(String, String, Boolean)

    Declaration
    public static bool IsSatisfied(string rangeSpec, string versionString, bool loose = false)
    Parameters
    Type Name Description
    System.String rangeSpec
    System.String versionString
    System.Boolean loose
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    MaxSatisfying(IEnumerable<Version>)

    Declaration
    public Version MaxSatisfying(IEnumerable<Version> versions)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<Version> versions
    Returns
    Type Description
    Version
    | Improve this Doc View Source

    MaxSatisfying(IEnumerable<String>, Boolean)

    Declaration
    public string MaxSatisfying(IEnumerable<string> versionStrings, bool loose = false)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<System.String> versionStrings
    System.Boolean loose
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    MaxSatisfying(String, IEnumerable<String>, Boolean)

    Declaration
    public static string MaxSatisfying(string rangeSpec, IEnumerable<string> versions, bool loose = false)
    Parameters
    Type Name Description
    System.String rangeSpec
    System.Collections.Generic.IEnumerable<System.String> versions
    System.Boolean loose
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    Satisfying(IEnumerable<Version>)

    Declaration
    public IEnumerable<Version> Satisfying(IEnumerable<Version> versions)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<Version> versions
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<Version>
    | Improve this Doc View Source

    Satisfying(IEnumerable<String>, Boolean)

    Declaration
    public IEnumerable<string> Satisfying(IEnumerable<string> versions, bool loose = false)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<System.String> versions
    System.Boolean loose
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<System.String>
    | 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
    Type Name Description
    System.String rangeSpec
    System.Collections.Generic.IEnumerable<System.String> versions
    System.Boolean loose
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<System.String>
    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.Object.ToString()

    Operators

    | Improve this Doc View Source

    Equality(Range, Range)

    Declaration
    public static bool operator ==(Range a, Range b)
    Parameters
    Type Name Description
    Range a
    Range b
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Inequality(Range, Range)

    Declaration
    public static bool operator !=(Range a, Range b)
    Parameters
    Type Name Description
    Range a
    Range b
    Returns
    Type Description
    System.Boolean

    Implements

    System.IEquatable<T>
    System.IEquatable<T>

    Extension Methods

    ReflectionUtil.SetField<T, U>(T, String, U)
    ReflectionUtil.GetField<U, T>(T, String)
    ReflectionUtil.SetProperty<T, U>(T, String, U)
    ReflectionUtil.GetProperty<U, T>(T, String)
    ReflectionUtil.InvokeMethod<U, T>(T, String, Object[])
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX