你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ObjectExtensions.AsArray<T>(T) Method

Definition

Wraps the object in an array of length 1.

public static T[] AsArray<T> (this T obj);
static member AsArray : 'T -> 'T[]
<Extension()>
Public Function AsArray(Of T) (obj As T) As T()

Type Parameters

T

Type of object to wrap.

Parameters

obj
T

Object to wrap in array.

Returns

T[]

Applies to