private VersionMatcher Merge(VersionMatcher that) { // merge the smaller into the larger if (this._dict.Count < that._dict.Count) { return(that.Merge(this)); } // trivial case - merge with empty collection if (that._dict.Count == 0) { return(this); } // return(this); }
internal static VersionMatcher Merge(VersionMatcher m1, string directory, string file) { VersionMatcher m2 = (file == null) ? s_Empty : new VersionMatcher(Path.Combine(directory, file)); return((m1 == null) ? m2 : m2.Merge(m1)); }