SoftBasicArrayExpandToLengthEvenT 方法 |
将一个数组进行扩充到偶数长度
Extend an array to even lengths
命名空间:
HslCommunication.BasicFramework
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static T[] ArrayExpandToLengthEven<T>(
T[] data
)
Public Shared Function ArrayExpandToLengthEven(Of T) (
data As T()
) As T()
public:
generic<typename T>
static array<T>^ ArrayExpandToLengthEven(
array<T>^ data
)
static member ArrayExpandToLengthEven :
data : 'T[] -> 'T[]
参数
- data
- 类型:T
原先数据的数据
类型参数
- T
- 数组的类型
返回值
类型:
T新数组长度信息
示例 ArrayExpandToLengthEven示例
int[] old = new int[5] { 1234, 1235, 1236, 1237, 1238 };
old = SoftBasic.ArrayExpandToLengthEven( old );
foreach (var m in old)
{
Console.Write( m + " " );
}
参见