|
|
@ -1,4 +1,5 @@
|
|
|
|
using System;
|
|
|
|
using System;
|
|
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Linq;
|
|
|
|
using System.Linq;
|
|
|
|
|
|
|
|
|
|
|
|
namespace ZeroLevel
|
|
|
|
namespace ZeroLevel
|
|
|
@ -73,6 +74,14 @@ namespace ZeroLevel
|
|
|
|
|| candidate.Length > array.Length;
|
|
|
|
|| candidate.Length > array.Length;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static IEnumerable<T> GetRow<T>(T[,] array, int row)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
for (int i = 0; i < array.GetLength(1); i++)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
yield return array[row, i];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static bool Equals(byte[] first, byte[] second)
|
|
|
|
public static bool Equals(byte[] first, byte[] second)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (null == first && null == second)
|
|
|
|
if (null == first && null == second)
|
|
|
|