using NCC.Dependency; using System; namespace NCC.Common.Collections { /// /// 数组扩展方法 /// [SuppressSniffer] public static class ArrayExtensions { /// /// 复制一份二维数组的副本 /// public static byte[,] Copy(this byte[,] bytes) { int width = bytes.GetLength(0), height = bytes.GetLength(1); byte[,] newBytes = new byte[width, height]; Array.Copy(bytes, newBytes, bytes.Length); return newBytes; } } }