public bool Union(BuildRange buildRange, out BuildRange unionedRange) { unionedRange = null; if (buildRange.Contains(minBuild) || buildRange.Contains(maxBuild) || Contains(buildRange.minBuild) || Contains(buildRange.maxBuild)) { Build min = minBuild, max = maxBuild; if (buildRange.minBuild < min) { min = buildRange.minBuild; } if (buildRange.maxBuild > max) { max = buildRange.maxBuild; } unionedRange = new BuildRange(min, max); return(true); } else { return(false); } }
public bool Equals(BuildRange buildRange) { return(minBuild.Equals(buildRange.minBuild) && maxBuild.Equals(buildRange.maxBuild)); }