// Copyright (c) 2015 - 2023 Doozy Entertainment. All Rights Reserved. // This code can only be used under the standard Unity Asset Store End User License Agreement // A Copy of the EULA APPENDIX 1 is available at http://unity3d.com/company/legal/as_terms using System.Collections.Generic; // ReSharper disable UnusedType.Global namespace Doozy.Runtime.Common.Extensions { /// Extension methods for the IEnumerable interface public static class EnumerableExtensions { /// Convert IEnumerable to HashSet /// Source IEnumerable /// Equality comparer for the set type /// A new HashSet public static HashSet ToHashSet(this IEnumerable source, IEqualityComparer comparer = null) => new HashSet(source, comparer); } }