@@ -60,12 +60,5 @@ namespace OpenTelemetry.Abstractions.Utils
 
             return sb.ToString();
         }
-
-        public static bool AreEquivalent<T>(IEnumerable<T> c1, IEnumerable<T> c2)
-        {
-            var c1Dist = c1.Distinct();
-            var c2Dist = c2.Distinct();
-            return c1.Count() == c2.Count() && c1Dist.Count() == c2Dist.Count() && c1Dist.Intersect(c2Dist).Count() == c1Dist.Count();
-        }
     }
 }
﻿// <copyright file="Collections.cs" company="OpenTelemetry Authors">
// Copyright 2018, OpenTelemetry Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>

namespace OpenTelemetry.Abstractions.Utils
{
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    internal static class Collections
    {
        public static string ToString<TKey, TValue>(IDictionary<TKey, TValue> dict)
        {
            if (dict == null)
            {
                return "null";
            }

            StringBuilder sb = new StringBuilder();
            foreach (var kvp in dict)
            {
                sb.Append(kvp.Key.ToString());
                sb.Append("=");
                sb.Append(kvp.Value.ToString());
                sb.Append(" ");
            }

            return sb.ToString();
        }

        public static string ToString<T>(IEnumerable<T> list)
        {
            if (list == null)
            {
                return "null";
            }

            StringBuilder sb = new StringBuilder();
            foreach (var val in list)
            {
                if (val != null)
                {
                    sb.Append(val.ToString());
                    sb.Append(" ");
                }
            }

            return sb.ToString();
        }

        public static bool AreEquivalent<T>(IEnumerable<T> c1, IEnumerable<T> c2)
        {
            var c1Dist = c1.Distinct();
            var c2Dist = c2.Distinct();
            return c1.Count() == c2.Count() && c1Dist.Count() == c2Dist.Count() && c1Dist.Intersect(c2Dist).Count() == c1Dist.Count();
        }
    }
}

I recall we wanted to get rid of the whole file, did we?