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