Add project
Basic formatting applied. Unnecessary comments have been removed. Suspicious code is covered by TODO.
This commit is contained in:
15
Hcs.Client/GostXades/Helpers/EnumerableHelper.cs
Normal file
15
Hcs.Client/GostXades/Helpers/EnumerableHelper.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace Hcs.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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user