ReleaseInfo(ReleaseLevel l, ReleaseConstraint c, CSVersion v) { Level = l; Constraint = c; Version = v; }
/// <summary> /// Tests whether this <see cref="ReleaseInfo"/> is compatible with a given <see cref="ReleaseLevel"/> /// and <see cref="ReleaseConstraint"/>. /// </summary> /// <param name="l">The minimal level.</param> /// <param name="c">Constraints that must be satisfied.</param> /// <returns>True if this ReleaseInfo can be used with this level and constraint.</returns> public bool IsCompatibleWith(ReleaseLevel l, ReleaseConstraint c) { return(Level >= l && (Constraint & c) == c); }