16 lines
456 B
C#
16 lines
456 B
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
namespace GostXades.Helpers
|
|
{
|
|
public static class EnumerableHelper
|
|
{
|
|
public static bool AreSequenceEquals(IEnumerable<string> first, IEnumerable<string> second)
|
|
{
|
|
var sortedFirst = first.OrderBy(x => x).ToArray();
|
|
var sortedSecond = second.OrderBy(x => x).ToArray();
|
|
return ArrayHelper.AreEquals(sortedFirst, sortedSecond);
|
|
}
|
|
}
|
|
}
|