Visual Basic (Usage) | ![]() |
---|---|
Dim extensions As Array Dim elementType As Type Dim value As Array value = ExtensionObject.ToArray(extensions, elementType) |
C# | |
---|---|
public static Array ToArray( Array extensions, Type elementType ) |
Parameters
- extensions
- The array to convert.
- elementType
- The type of each element.
Return Value
The new array
Will add null elements if individual elements cannot be converted.
Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2015, .NET4.x