ObjectExtensions.AsArray<T>(T) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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[]