Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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));
        }
Ejemplo n.º 3
0
 static VersionMatcher()
 {
     s_Empty = new VersionMatcher();
 }