Visual Basic (Usage) | ![]() |
---|---|
Dim srcArray As Array Dim srcType As BuiltInType Dim dstType As BuiltInType Dim convertor As TypeInfo.CastArrayElementHandler Dim value As Array value = TypeInfo.CastArray(srcArray, srcType, dstType, convertor) |
C# | |
---|---|
public static Array CastArray( Array srcArray, BuiltInType srcType, BuiltInType dstType, TypeInfo.CastArrayElementHandler convertor ) |
Parameters
- srcArray
- The source array.
- srcType
- The type of the source array.
- dstType
- The type of the converted array.
- convertor
- The handler which does the conversion.
Return Value
The converted array.Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2015, .NET4.x