/* ----------------------------------------------------------------- * * methods * * ----------------------------------------------------------------- */ /// <summary> /// Tests if a version falls within range. /// </summary> /// <param name="version">Version to be tested.</param> /// <returns>Whether version fall within range.</returns> public bool Accepts(string version) { var releaseVersion = new ReleaseVersion(version); if (_start is null) { return(true); } if (releaseVersion < _start) { return(false); } if (releaseVersion.Equals(_start) && !_startInclusive) { return(false); } if (_stop is null) { return(true); } if (releaseVersion > _stop) { return(false); } if (releaseVersion.Equals(_stop) && !_stopInclusive) { return(false); } return(true); }
public bool Equals(SdkFeatureBand other) { return(_featureBand.Equals(other._featureBand)); }